Read email summary
read_emailRead one email's envelope (subject, from, to, date), its flags and read state, a short preview of its text, and the files attached to it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>",
"mailbox": "<mailbox>",
"uid": "<uid>"
},
"name": "read_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Email UID, as returned by list_emails or search_emails | |
| Yes | The email account address | ||
| mailbox | Yes | Mailbox/folder the UID belongs to, e.g. "INBOX" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Who it was addressed to. | |
| uid | Yes | Its UID within `mailbox`. | |
| date | No | The Date header, as the sender's client wrote it. | |
| from | Yes | Who sent it. | |
| flags | No | IMAP flags on the email, e.g. "\\Seen", "\\Flagged", "\\Answered". | |
| unread | No | true if nobody has opened it yet. Absent when the server reported no flags. | |
| mailbox | Yes | The folder the email is in. | |
| preview | No | The start of the body. Call read_email_body for all of it. | |
| subject | No | Subject line. | |
| received | No | When the server received it, "YYYY-MM-DD HH:MM". | |
| attachments | Yes | Files attached to it. stage_attachment_from_email takes one by its `part` to attach it to a draft. |