Read attachment
get_message_attachmentOne attachment. representation=auto (default) returns extracted text for PDF/DOCX, a native image block for supported small images, or metadata plus an original-bytes descriptor; text forces extraction; image forces a native image; original returns the unchanged bytes descriptor for read_content(as=bytes). The original file is always retrievable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identity_id": "<identity_id>",
"message_id": "<message_id>",
"attachment_id": "<attachment_id>"
},
"name": "get_message_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | ||
| identity_id | Yes | Identity id from list_identities. | |
| attachment_id | Yes | ||
| representation | No | auto |