download_attachment
Downloads an email attachment from a specified IMAP account, folder, and message part to a generated local path without executing the file.
Instructions
Download an attachment to a generated local path. Never execute the 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": {
"account_id": "<account_id>",
"folder": "<folder>",
"uidvalidity": "<uidvalidity>",
"uid": "<uid>",
"part_id": "<part_id>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | Yes | ||
| part_id | Yes | ||
| account_id | Yes | ||
| uidvalidity | Yes |