Read Attachment
mailbox_read_attachmentRead email attachment contents by providing message and attachment IDs. Returns text for small text attachments or metadata with a download link for binary or oversized files.
Instructions
Use this after finding a message attachment when you need the attachment contents. Text-like attachments are downloaded server-side and returned as text, so agents do not need a generic web_fetch tool. Binary or oversized attachments return metadata plus a fresh download link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Read mode: auto, metadata, text, or resource_link. auto inlines small text attachments. | auto |
| mailbox_id | No | Mailbox public ID when the credential can access more than one mailbox. | |
| message_id | Yes | Message ID containing the attachment. | |
| attachment_id | Yes | Attachment ID from message metadata. | |
| max_text_bytes | No | Maximum text bytes to return inline. Defaults to 262144 and is capped at 1048576. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||