Download an attachment
get_attachmentFetch an attachment from a message as base64 (max ~1.5 MB — larger files must be opened in webmail). Use the filename from read_message's attachment metadata.
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": {
"mailbox": "<mailbox>",
"uid": "<uid>",
"filename": "<filename>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Message UID | |
| folder | No | IMAP folder name (default "INBOX") | |
| mailbox | Yes | Full mailbox address | |
| filename | Yes | Attachment filename from read_message |