gmail_messages_attachments_get
Read a single Gmail attachment by its attachment ID to access text content or check binary file status; binary files are reported, not decoded.
Instructions
Read one attachment, by the attachmentId messages_get or threads_get lists. A text file comes back as text; a binary one is reported, not decoded.
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>",
"id": "<id>"
},
"name": "gmail_messages_attachments_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the attachment. | |
| userId | No | The user's email address. The special value 'me' can be used to indicate the authenticated user. | me |
| messageId | Yes | The ID of the message containing the attachment. |