get_attachment
Save a Gmail attachment to a local directory. Provide account, message, and attachment IDs with an output path to receive the saved file's location and size.
Instructions
Write an attachment under download_root. output_path may be a bare filename (lands in download_root) or an absolute path under it. Returns path and size.
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": {
"account": "<account>",
"message_id": "<message_id>",
"attachment_id": "<attachment_id>",
"output_path": "<output_path>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| message_id | Yes | ||
| output_path | Yes | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |