Save attachments
save_attachmentsSaves email attachments from a specified message to the local attachments folder (Downloads/mail-attachments by default) without overwriting existing files; run only on user request.
Instructions
Save attachments of a message into the attachments folder on this computer (Downloads/mail-attachments by default, nowhere else). Existing files are never overwritten. Saved files are not opened or executed and are marked as downloaded from the internet. Only on the user's request; never open or run saved files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Message uid | |
| folder | No | Folder path, default INBOX | INBOX |
| account | Yes | Mailbox address, e.g. you@example.com | |
| indexes | No | Attachment indexes from read_email; all if omitted | |
| subfolder | No | Subfolder inside the attachments folder. Default: <mailbox>/<uid> |