Get Gmail Attachment
gmail_get_attachmentDownload a file attachment from any Gmail message using the message and attachment IDs.
Instructions
Download an attachment from a Gmail message.
Args:
message_id (string): The ID of the message containing the attachment
attachment_id (string): The ID of the attachment to download (from gmail_list_attachments)
filename (string, optional): Filename for the attachment (for display purposes)
Returns: The attachment content. For images, returns the image directly. For other files, provides download info.
Examples:
Download attachment: message_id="abc123", attachment_id="xyz789"
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": {
"message_id": "<message_id>",
"attachment_id": "<attachment_id>"
},
"name": "gmail_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | The ID of the message containing the attachment | |
| attachment_id | Yes | The ID of the attachment to download | |
| filename | No | Optional filename for the attachment (used for saving) |