Skip to Content
Docs
ReferenceRead

fetch

Read an awen item

Reads one item by the id that search or a list returned (project:…, folder:…, file:… or conversation:…). A file gives its description, tags, prompt, model and a download link valid 5 minutes; authorized_for_usage false means no member has confirmed its rights in awen yet, not that it is forbidden. With include_preview, an image, video or 3D model also comes as a small picture you can see, when you can't open the link or the user asks what it looks like: metadata.preview says included, pending when a new file's picture is not drawn yet, so ask again in a moment, not_applicable for a text file, whose text is in the answer, or unavailable; a text file (Markdown, text, CSV, HTML) gives its content, 32 KiB at a time. A folder or project gives its listing, a memory its instructions, a conversation its messages, 20 at a time, each answer with the turn_id get_turn reads. Pass metadata.next_offset back as offset to continue a file or a conversation.

Arguments

ArgumentTypeRequiredWhat it is
idstringYesAn id from search or a list.
offsetintegerNoWhere to continue a text file (bytes) or a conversation (messages).
include_previewbooleanNoAdds a small picture of a file to the answer. It uses more of your context, so ask for it only when needed.

Call

A host sends a tools/call request to the MCP endpoint, with the arguments it needs.

{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "fetch",    "arguments": {      "id": "<string>"    }  }}

Arguments schema

{  "type": "object",  "properties": {    "id": {      "type": "string",      "minLength": 1,      "maxLength": 144,      "description": "An id from search or a list."    },    "offset": {      "description": "Where to continue a text file (bytes) or a conversation (messages).",      "type": "integer",      "minimum": 0,      "maximum": 2147483647    },    "include_preview": {      "type": "boolean",      "description": "Adds a small picture of a file to the answer. It uses more of your context, so ask for it only when needed."    }  },  "required": [    "id"  ]}

Answer

The answer's structuredContent follows this schema, and its text holds the same JSON.

{  "type": "object",  "properties": {    "id": {      "type": "string"    },    "title": {      "type": "string"    },    "text": {      "type": "string"    },    "url": {      "type": "string"    },    "metadata": {      "type": "object",      "propertyNames": {        "type": "string"      },      "additionalProperties": {}    }  },  "required": [    "id",    "title",    "text",    "url",    "metadata"  ],  "additionalProperties": false}