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"
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) |