download_attachment
Saves an email attachment to a local directory and returns the saved file path, letting you retrieve attachments from a specific message and folder.
Instructions
Save an email attachment to a local directory. Returns the saved path.
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": {
"uid": "<uid>",
"filename": "<filename>",
"save_dir": "<save_dir>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | No | Folder path from list_folders | INBOX |
| account | No | Mailbox: WORK | PERSONAL. Default WORK | |
| filename | Yes | ||
| save_dir | Yes |