download_attachment
Download an email attachment by its part index from get_email. Optionally set a save path to write the file instead of returning base64.
Instructions
Download an attachment by part_index from get_email.
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>",
"part_index": "<part_index>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID | |
| folder | No | IMAP folder | INBOX |
| save_path | No | If set, write file here instead of returning base64 | |
| part_index | Yes | Attachment index from get_email |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |