Get attachment
get_attachmentReturns an attachment. Text-like files (txt, csv, json, xml) come back as text. Anything else comes back as a download link valid for one hour: give that link to the user instead of reading the file. Only pass inline=true when the file content itself is needed in the conversation (max 2097152 bytes).
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 |