save_all_attachments
Save every attachment from an Apple Mail message into the configured attachments folder. Use optional subfolders and overwrite controls to organize files or avoid replacing existing ones.
Instructions
Save every attachment on a message, inside the attachments folder.
Same rules as save_attachment: writes only inside APPLE_MAIL_MCP_ATTACHMENTS_DIR, filenames cleaned, overwrite needs confirm.
Args: account, mailbox, id: As returned by search_messages. target_dir: Optional subfolder (relative, or absolute inside the folder). overwrite: If false (default), taken names get a " (2)", " (3)" suffix. True replaces existing files and requires confirm=true. confirm: Required with overwrite=true. Get the user's approval first.
Returns {saved: [{index, saved_path, name, original_name, size}],
skipped: [{index, name, reason}]}. reason is typically "not_downloaded" —
open the message in Mail.app to fetch it.
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": {
"account": "<account>",
"mailbox": "<mailbox>",
"id": "<id>"
},
"name": "save_all_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| account | Yes | ||
| confirm | No | ||
| mailbox | Yes | ||
| overwrite | No | ||
| target_dir | No |