gmail_get_attachment
Retrieve a single attachment or inline image from a Gmail message by providing message ID and attachment ID. Get base64-encoded bytes on demand without loading all attachments.
Instructions
Fetch the raw base64 bytes of a single attachment or inline image on a Gmail message, identified by the message_id + attachment_id echoed by gmail_get_thread. Use this to pull one file on demand instead of loading every attachment into the thread payload. data_base64 is raw encoded bytes, not a rendered image - you cannot read an image's contents from it; on vision-capable MCP hosts, image attachments are additionally rendered into context as a viewable image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | ||
| message_id | Yes | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| message_id | Yes | ||
| data_base64 | Yes | ||
| attachment_id | Yes |