gmail_get_attachment
Download an attachment from a Gmail message using its attachment ID obtained from reading the message.
Instructions
Download an attachment from a Gmail message. Use gmail_read first to get the attachmentId from the attachments list.
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": {
"email": "<email>",
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "gmail_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The Gmail address the email belongs to. | ||
| filename | No | The filename of the attachment (from gmail_read attachments list, optional but helpful). | |
| messageId | Yes | The Gmail message ID containing the attachment (id field from gmail_search or gmail_read). | |
| attachmentId | Yes | The attachment ID from the attachments array in gmail_read output. |