get_attachment
Download an email attachment as base64 by supplying its MIME part ID. Safe retrieval blocks executables, zip, and eml files and enforces a 2 MiB limit.
Instructions
Download one attachment as base64. Type allowlist and 2 MiB cap. Executables, zip, and eml are rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| part | Yes | MIME part id from list_attachments | |
| folder | No | IMAP folder path, default INBOX | |
| account_id | No | Account id from list_accounts; omit when only one mailbox is linked |