Save Attachment
save_attachmentSaves an attachment from an email to disk. Requires confirm=true; without it you get a preview of where the file would be written. Pass account= (and mailbox= if known, both from list_emails/search_emails) so the lookup targets one account instead of scanning all of them.
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 | Set to true to actually write the file. Without it you get a preview of where it would be written. Defaults to false. | 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 |