download_attachment
Retrieve an email attachment by filename. Check available files with get_email, then download the base64-encoded content (≤5MB).
Instructions
Download an email attachment by filename. First use get_email to see available attachments and their filenames. Returns base64-encoded content for files ≤5MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Email ID (UID) from list_emails or get_email | |
| account | Yes | Account name from list_accounts | |
| mailbox | No | Mailbox containing the email | INBOX |
| filename | Yes | Exact attachment filename (from get_email metadata) |