Download Attachment
download_attachmentRetrieve the binary content of an email attachment as a base64-encoded string. Use after getting email details to identify the attachment index.
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 | |
| attachment_index | Yes | 0-based index of the attachment (from get_email_by_id attachments array) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| contentType | Yes | ||
| size | Yes | ||
| content | Yes | Base64-encoded attachment content | |
| encoding | Yes |