get_attachment
Fetch a Gmail attachment using message ID and attachment ID. Returns base64 content, filename, MIME type, and size, with text data for text-like attachments. Default size limit 5MB.
Instructions
Fetch one Gmail attachment by message_id + attachment_id (discover both via list_thread_attachments). Returns base64 bytes + filename/mime_type/size_bytes; for text-like MIMEs also data_text. Default cap 5MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | A connected account ref (see list_accounts). | |
| message_id | Yes | ||
| attachment_id | Yes | ||
| max_size_bytes | No | Reject attachments larger than this. Default 5242880 (5MB). |