Read an attachment
get_attachmentRetrieve a specific attachment from a Proton Mail message using its index. Textual attachments are returned as text; binary attachments are refused with a reason.
Instructions
Reads one attachment of a message by index. The index comes from the attachment list in get_message. Textual attachments are returned as text, binary ones are refused with a reason rather than dumped into the context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index of the attachment, as shown by get_message. Starts at 0. | |
| offset | No | Where to continue reading a long attachment. The answer names the next offset. | |
| mailbox | No | Optional: the mailbox to look in first. | |
| messageId | Yes | The message id the attachment belongs to. |