Download attachment
download_attachmentFetch metadata and a resource link for a single email attachment, with optional inline content or PDF text extraction for a specified page range.
Instructions
Get metadata and a resource link for one attachment. With inline, the result also includes the content. For a PDF, inline adds extracted text, and pages returns the text of a page range such as 201-400. The size limit is 10 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | PDF page or page range to read as text, such as 201-400 | |
| inline | No | ||
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| messageId | Yes | ||
| attachmentId | Yes | Opaque attachment ID returned by message metadata |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |