download_attachment
Downloads one or all attachments from a specified email to a chosen directory; use get_email first to find attachment filenames.
Instructions
Download attachment(s) from an email. Use get_email to see filenames.
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": {
"email_id": "<email_id>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | Email ID. | |
| destination | No | Save directory (default: /tmp/mail-attachments/). | |
| attachment_name | No | Filename (omit for all). |