download_attachment
Download a specific email attachment by email UID and attachment index; returns the file as a base64-encoded string for processing or saving.
Instructions
Download a specific attachment from an email. Returns the attachment as a base64-encoded string.
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>",
"part_index": "<part_index>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | UID of the email containing the attachment | |
| folder | No | Folder the email is in (e.g. INBOX, Sent, Drafts) | INBOX |
| part_index | Yes | Attachment index from list_attachments (0-based) |