Get Gmail Attachment
gmail_get_attachmentDownload a Gmail attachment using message and attachment IDs. Retrieve image content directly or obtain download information for other file types.
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 |
|---|---|---|---|
| filename | No | Optional filename for the attachment (used for saving) | |
| message_id | Yes | The ID of the message containing the attachment | |
| attachment_id | Yes | The ID of the attachment to download |