Get attachment
get_attachmentDownload a specific email attachment by supplying the account, email ID, and part ID. Text attachments are returned as text, while binary attachments are embedded as binary data.
Instructions
Downloads one attachment (max 2097152 bytes). Text-like types are returned as text, others as embedded binary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| part | Yes | part id from get_message | |
| folder | No | Folder/label path. Defaults to All Mail on Gmail, INBOX elsewhere. | |
| inline | No | Embed the binary content in the result instead of returning a link | |
| account | Yes | Account id from list_accounts |