download_attachments
Download selected email attachments to a local folder with a confirmation token, avoiding duplicate file overwrites while enforcing configurable size limits for safe, controlled retrieval.
Instructions
Download selected attachments. Requires confirm='DOWNLOAD' and never overwrites files.
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>",
"folder": "<folder>",
"output_dir": "<output_dir>",
"indexes": "<indexes>",
"confirm": "<confirm>"
},
"name": "download_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | Yes | ||
| confirm | Yes | ||
| indexes | Yes | ||
| output_dir | Yes | ||
| max_total_bytes | No | ||
| max_download_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||