Read an email
read_emailOpen an email by its IMAP UID to get the message body, headers, and attachment list. Returns plain text, converts HTML-only messages, and marks truncation instead of silently cutting off long content.
Instructions
Open one message and return its body, headers, and attachment list.
Bodies are returned as plain text; HTML-only messages are converted, and long bodies are truncated with a marker rather than silently cut.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID, as returned by search_emails. | |
| folder | No | Folder the message is in. | INBOX |
| mark_as_read | No | Set the Seen flag as a side effect of reading. | |
| max_body_chars | No | Override the configured body length limit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| uid | Yes | ||
| body | No | Plain-text body. HTML-only mail is converted to text. | |
| date | No | ||
| seen | No | ||
| size | No | ||
| folder | Yes | ||
| sender | No | ||
| flagged | No | ||
| subject | No | ||
| reply_to | No | ||
| truncated | No | True when the body was cut short at the configured limit. | |
| message_id | No | RFC 5322 Message-ID, used for threading replies. | |
| references | No | ||
| attachments | No | ||
| in_reply_to | No | ||
| sender_name | No | ||
| body_is_converted_html | No | True when the message had no plain-text part and the body was derived from HTML. |