save_all_attachments
Saves all downloaded attachments from a specified Mail message to a chosen directory, creating the destination folder recursively before contacting Mail.
Instructions
Save all downloaded attachments from a message to disk. Creates the destination directory recursively before contacting Mail.
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": {
"messageId": "<messageId>",
"mailboxName": "<mailboxName>",
"accountName": "<accountName>"
},
"name": "save_all_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| savePath | No | The directory path to save the attachments to (default ~/Downloads) | ~/Downloads |
| messageId | Yes | The numeric ID of the message | |
| accountName | Yes | The name of the account containing the mailbox | |
| mailboxName | Yes | The name of the mailbox containing the message |