Get attachment
get_attachmentRetrieves a single email attachment by message UID and index, returning text and images inline. Save PDF or Office files to disk so you can open them instead.
Instructions
Returns one attachment. Text and images come back inline. Other types (PDF, Office files) can only be saved to disk: set save to true and the file is written to the attachments folder and its path returned.
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": {
"uid": "<uid>",
"index": "<index>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| save | No | Write the file to the local attachments folder. | |
| index | Yes | Attachment index from get_message. | |
| mailbox | No | INBOX |