Download Attachment
download_attachmentRetrieve an email attachment's binary content as a base64-encoded string. Use get_email_by_id to find the attachment's index first.
Instructions
Download the binary content of an email attachment as a base64-encoded string. Use get_email_by_id first to see available attachments and their indices (0-based).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | IMAP UID of the email | |
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). | |
| attachment_index | Yes | 0-based index of the attachment (from get_email_by_id attachments array) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| content | Yes | Base64-encoded attachment content | |
| encoding | Yes | ||
| filename | Yes | ||
| contentType | Yes |