gmail_get_attachment
Fetch a single attachment from a Gmail message by ID, saving it to your download folder or returning base64 data for quick access.
Instructions
Fetch one attachment from a Gmail message. Writes it into the account's download directory and returns the path (encoding: file, the default), or returns the bytes inline as base64 (encoding: base64, capped at 750 KB). Attachment ids come from the attachments array on gmail_read_message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Configured Gmail account alias, e.g. work, personal, support. | |
| encoding | No | file | |
| messageId | Yes | ||
| attachmentId | Yes |