Gmail: Get attachment
gmail_get_attachmentRetrieves a Gmail message attachment by ID and returns its filename, MIME type, size, and base64 data for download or processing.
Instructions
[UNIFIED] Get a message attachment by id. Returns the attachment filename, mime type, size, and base64-encoded data. Find attachment ids in a get_message (format=full) response under parts[].body.attachmentId.
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": {
"site": "<site>",
"message_id": "<message_id>",
"attachment_id": "<attachment_id>"
},
"name": "gmail_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| message_id | Yes | ||
| attachment_id | Yes |