download_attachment
Download an email attachment from any connected Gmail account to your local Downloads folder using the attachment ID from a message.
Instructions
Multi-account Gmail (all connected accounts). Download an email attachment to ~/Downloads. Get attachmentId from get_thread/get_message.
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>",
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Which Gmail account to use: an alias (e.g. "personal", "work") or the email address. See list_accounts. | |
| messageId | Yes | ||
| attachmentId | Yes | ||
| filename | No | Filename to save as (from the attachment metadata). |