download_attachment
Retrieve an email attachment by UID and filename, returning it as Base64-encoded data to save locally.
Instructions
Download an email attachment and return it as Base64 encoded data. Use this to save attachments locally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Email UID | |
| mailbox | No | IMAP mailbox the UID came from (the `mailbox` field in list results, e.g. "[Gmail]/Sent Mail"). Defaults to INBOX. Required for emails returned by get_emails_by_label, since UIDs are only unique within a mailbox. | |
| filename | Yes | Exact filename of the attachment to download |