save_attachment
Save an Outlook email attachment to a chosen folder on your computer, using a message ID and attachment name or index. It preserves existing files by adding a number when a name already exists.
Instructions
Save an attachment to a folder on this computer. Never overwrites: adds " (1)" etc. if needed.
Args:
message_id: The message.
attachment: Attachment name, its index from read_message, or "all".
dest_dir: Existing folder inside the allowed folders (default ~/Downloads).
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": {
"message_id": "<message_id>",
"attachment": "<attachment>"
},
"name": "save_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_dir | No | ~/Downloads | |
| attachment | Yes | ||
| message_id | Yes |