download_attachment
Downloads a specified email attachment to a temporary directory and returns its file path, so you can access the file from the email message.
Instructions
Download an email attachment to a temporary directory. Downloads all attachments, then returns the path to the requested file.
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": {
"id": "<id>",
"filename": "<filename>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Email message ID | |
| folder | No | Folder name (default: INBOX) | |
| account | No | Account name (uses default if omitted) | |
| filename | Yes | Attachment filename to download |