ToolReturnMessage
A message representing the return value of a tool call (generated by Letta executing the requested tool). Args: id (str): The ID of the message date (datetime): The date the message was created in ISO format name (Optional[str]): The name of the sender of the message tool_return (str): The return value of the tool (deprecated, use tool_returns) status (Literal["success", "error"]): The status of the tool call (deprecated, use tool_returns) tool_call_id (str): A unique identifier for the tool call that generated this message (deprecated, use tool_returns) stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation (deprecated, use tool_returns) stderr (Optional[List(str)]): Captured stderr from the tool invocation (deprecated, use tool_returns) tool_returns (Optional[List[ToolReturn]]): List of tool returns for multi-tool support
Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| date | string | |
| name | object | |
| message_type | string | The type of the message. |
| otid | object | The offline threading id (OTID). Set by the client to deduplicate requests. Used for idempotency in background streaming mode — each message in a request must have a unique OTID. Retries of the same r |
| sender_id | object | |
| step_id | object | |
| is_err | object | |
| seq_id | object | |
| run_id | object | |
| tool_return | string | |
| status | string | |
| tool_call_id | string | |
| stdout | object | |
| stderr | object | |
| tool_returns | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/letta/json-schema/letta-tool-return-message-schema.json",
"title": "ToolReturnMessage",
"description": "A message representing the return value of a tool call (generated by Letta executing the requested tool).\n\nArgs:\n id (str): The ID of the message\n date (datetime): The date the message was created in ISO format\n name (Optional[str]): The name of the sender of the message\n tool_return (str): The return value of the tool (deprecated, use tool_returns)\n status (Literal[\"success\", \"error\"]): The status of the tool call (deprecated, use tool_returns)\n tool_call_id (str): A unique identifier for the tool call that generated this message (deprecated, use tool_returns)\n stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation (deprecated, use tool_returns)\n stderr (Optional[List(str)]): Captured stderr from the tool invocation (deprecated, use tool_returns)\n tool_returns (Optional[List[ToolReturn]]): List of tool returns for multi-tool support",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/letta-conversations-api-openapi.yml#/components/schemas/ToolReturnMessage",
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"date": {
"type": "string",
"format": "date-time",
"title": "Date"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"message_type": {
"type": "string",
"const": "tool_return_message",
"title": "Message Type",
"description": "The type of the message.",
"default": "tool_return_message"
},
"otid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Otid",
"description": "The offline threading id (OTID). Set by the client to deduplicate requests. Used for idempotency in background streaming mode — each message in a request must have a unique OTID. Retries of the same request should reuse the same OTIDs."
},
"sender_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sender Id"
},
"step_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Step Id"
},
"is_err": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Is Err"
},
"seq_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Seq Id"
},
"run_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Run Id"
},
"tool_return": {
"type": "string",
"title": "Tool Return",
"deprecated": true
},
"status": {
"type": "string",
"enum": [
"success",
"error"
],
"title": "Status",
"deprecated": true
},
"tool_call_id": {
"type": "string",
"title": "Tool Call Id",
"deprecated": true
},
"stdout": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Stdout",
"deprecated": true
},
"stderr": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Stderr",
"deprecated": true
},
"tool_returns": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/letta__schemas__letta_message__ToolReturn"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tool Returns"
}
},
"type": "object",
"required": [
"id",
"date",
"tool_return",
"status",
"tool_call_id"
],
"$defs": {
"Base64Image": {
"properties": {
"type": {
"type": "string",
"const": "base64",
"title": "Type",
"description": "The source type for the image.",
"default": "base64"
},
"media_type": {
"type": "string",
"title": "Media Type",
"description": "The media type for the image."
},
"data": {
"type": "string",
"title": "Data",
"description": "The base64 encoded image data."
},
"detail": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Detail",
"description": "What level of detail to use when processing and understanding the image (low, high, or auto to let the model decide)"
}
},
"type": "object",
"required": [
"media_type",
"data"
],
"title": "Base64Image"
},
"ImageContent": {
"properties": {
"type": {
"type": "string",
"const": "image",
"title": "Type",
"description": "The type of the message.",
"default": "image"
},
"source": {
"oneOf": [
{
"$ref": "#/$defs/UrlImage"
},
{
"$ref": "#/$defs/Base64Image"
},
{
"$ref": "#/$defs/LettaImage"
}
],
"title": "Source",
"description": "The source of the image."
}
},
"type": "object",
"required": [
"source"
],
"title": "ImageContent"
},
"LettaImage": {
"properties": {
"type": {
"type": "string",
"const": "letta",
"title": "Type",
"description": "The source type for the image.",
"default": "letta"
},
"file_id": {
"type": "string",
"title": "File Id",
"description": "The unique identifier of the image file persisted in storage."
},
"media_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Media Type",
"description": "The media type for the image."
},
"data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Data",
"description": "The base64 encoded image data."
},
"detail": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Detail",
"description": "What level of detail to use when processing and understanding the image (low, high, or auto to let the model decide)"
}
},
"type": "object",
"required": [
"file_id"
],
"title": "LettaImage"
},
"LettaToolReturnContentUnion": {
"oneOf": [
{
"$ref": "#/$defs/TextContent"
},
{
"$ref": "#/$defs/ImageContent"
}
]
},
"TextContent": {
"properties": {
"type": {
"type": "string",
"const": "text",
"title": "Type",
"description": "The type of the message.",
"default": "text"
},
"text": {
"type": "string",
"title": "Text",
"description": "The text content of the message."
},
"signature": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Signature",
"description": "Stores a unique identifier for any reasoning associated with this text content."
}
},
"type": "object",
"required": [
"text"
],
"title": "TextContent"
},
"UrlImage": {
"properties": {
"type": {
"type": "string",
"const": "url",
"title": "Type",
"description": "The source type for the image.",
"default": "url"
},
"url": {
"type": "string",
"title": "Url",
"description": "The URL of the image."
}
},
"type": "object",
"required": [
"url"
],
"title": "UrlImage"
},
"letta__schemas__letta_message__ToolReturn": {
"properties": {
"type": {
"type": "string",
"const": "tool",
"title": "Type",
"description": "The message type to be created.",
"default": "tool"
},
"tool_return": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/LettaToolReturnContentUnion"
},
"type": "array"
},
{
"type": "string"
}
],
"title": "Tool Return",
"description": "The tool return value - either a string or list of content parts (text/image)"
},
"status": {
"type": "string",
"enum": [
"success",
"error"
],
"title": "Status"
},
"tool_call_id": {
"type": "string",
"title": "Tool Call Id"
},
"stdout": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Stdout"
},
"stderr": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Stderr"
}
},
"type": "object",
"required": [
"tool_return",
"status",
"tool_call_id"
],
"title": "ToolReturn"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/letta-tool-return-message"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.