download_attachment
Download an email attachment to a specified local path by providing message ID, attachment ID, and save path.
Instructions
Download an attachment to save_path (absolute path; parent dirs auto-created).
Returns {path, bytes_written, name}.
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_id": "<attachment_id>",
"save_path": "<save_path>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | ||
| attachment_id | Yes | ||
| save_path | Yes |