get_attachment
Fetch a specific email attachment's content into the conversation. Images appear inline; other files arrive as base64 with metadata. Supports up to 25 MB, otherwise use save_attachment.
Instructions
Fetch one attachment's content into the conversation (up to 25 MB decoded). Images are returned as image content; other files as base64 in the structured output alongside the metadata. For an attachment too large to be worth reading inline, use save_attachment instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | message uid from list_emails or search_emails | |
| index | Yes | attachment index from list_attachments or get_email | |
| folder | Yes | folder name, as returned by list_folders | |
| uidvalidity | Yes | uidvalidity value returned alongside the uid; detects stale uids |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| data_base64 | No | attachment bytes, base64; absent for images, which arrive as image content | |
| content_type | Yes | ||
| decoded_size_bytes | Yes | ||
| encoded_size_bytes | Yes |