gmail_get_attachment
Fetch a single attachment from a Gmail message by ID, saving it to your download folder or returning base64 data for quick access.
Instructions
Fetch one attachment from a Gmail message. Writes it into the account's download directory and returns the path (encoding: file, the default), or returns the bytes inline as base64 (encoding: base64, capped at 750 KB). Attachment ids come from the attachments array on gmail_read_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": "gmail_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Configured Gmail account alias, e.g. work, personal, support. | |
| encoding | No | file | |
| messageId | Yes | ||
| attachmentId | Yes |