download_attachment
Fetch an attachment from a Gmail message using the attachment ID and message ID. Returns base64-encoded data and MIME type.
Instructions
Download a specific attachment from a Gmail message. Returns the base64-encoded attachment data and its MIME type.
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": {
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | The Gmail message ID containing the attachment | |
| attachmentId | Yes | The attachment ID (from the attachments list in read_email) |