download_attachment
Retrieve an email attachment by filename. Check available files with get_email, then download the base64-encoded content (≤5MB).
Instructions
Download an email attachment by filename. First use get_email to see available attachments and their filenames. Returns base64-encoded content for files ≤5MB.
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": {
"account": "<account>",
"id": "<id>",
"filename": "<filename>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Email ID (UID) from list_emails or get_email | |
| account | Yes | Account name from list_accounts | |
| mailbox | No | Mailbox containing the email | INBOX |
| filename | Yes | Exact attachment filename (from get_email metadata) |