download_attachment
Save a single email attachment to the local ./downloads folder and return its file path so agents can access the saved file.
Instructions
Save one attachment of a message to ./downloads and return the local 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>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| index | No | Zero-based; see read_message attachments | |
| account | No | Account id or email | |
| mailbox | No | Folder path, default INBOX |