Save attachments
mailbox_download_attachmentsSaves email attachments from a specified message to a local folder and returns their file paths; choose attachment indexes or save all by default.
Instructions
Save a message's attachments to a local folder (default /root/Downloads/mailbox-org). Returns the saved file paths. Use mailbox_get_message to see attachment indexes.
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>"
},
"name": "mailbox_download_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Message UID from mailbox_search_messages (UIDs are per folder) | |
| folder | No | Folder path, e.g. "INBOX", "Archive", "INBOX/newsletters". Names like archive, trash, junk, sent, drafts also work. | INBOX |
| indexes | No | Attachment indexes to save; default all | |
| save_dir | No | Local folder to save into |