Save Attachment
save_attachmentSaves an attachment from an email to disk. Pass account= (and mailbox= if known, both from list_emails/search_emails) so the lookup targets one account instead of scanning all of them.
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": {
"message_id": "<message_id>",
"attachment_name": "<attachment_name>"
},
"name": "save_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Mail.app account the message lives in (returned alongside the id). Passing it skips searching the other accounts. | |
| confirm | No | Ignored; kept for older clients. | false |
| mailbox | No | Folder the message lives in (returned alongside the id). Passing it skips searching the other folders. | |
| message_id | Yes | The message id of the email that carries the attachment, from list_emails or search_emails. Accepts the bare id or the <angle-bracketed> form. | |
| destination | No | Folder to write the file into. Defaults to ~/Downloads. | ~/Downloads |
| attachment_name | Yes | File name of the attachment as it appears in the message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| saved | No | ||
| attempts | No | ||
| destination | No |