download_attachment
Retrieve a specific email attachment as base64 content by providing the message UID and filename. Handles downloads up to 5 MB.
Instructions
Download one attachment (base64), capped at 5 MB.
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>",
"filename": "<filename>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| account | No | default | |
| mailbox | No | INBOX | |
| filename | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||