download_attachment
Save a Gmail message attachment to a local file path. Provide message_id, attachment_id, and out; parent folders are created if needed.
Instructions
Download a message attachment to a local file path.
Writes the attachment bytes to out and returns {path, bytes_written}.
Bytes are never returned inline.
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>",
"out": "<out>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Local file path to write the bytes to; parent dirs are created if missing. | |
| message_id | Yes | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||