save_attachments
Save a message's attachments to a local directory without altering the mailbox; existing files are preserved with numbered suffixes.
Instructions
Save a message's attachments to a local directory (absolute path, created if missing); never overwrites, a taken name gets a numbered suffix. Optionally only the named files. Changes nothing in the mailbox.
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": {
"mailbox": "<mailbox>",
"message_id": "<message_id>",
"dir": "<dir>"
},
"name": "save_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | ||
| mailbox | Yes | A connected mailbox address (see list_mailboxes) | |
| filenames | No | ||
| message_id | Yes |