read_email
Fetch full email headers and body for a given message UID. Optionally embed attachments as base64 links.
Instructions
Fetch full headers + body of a message. Attachments listed by name+mime.
Set include_attachments=true to also embed each attachment as base64
(respects the size limit; large attachments may push you over context).
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": {
"uid": "<uid>"
},
"name": "read_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Message UID (from list_recent/search). | |
| folder | No | INBOX | |
| account | No | ||
| include_attachments | No | If true, embed attachments as base64. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| uid | Yes | ||
| date | No | ||
| from | Yes | ||
| subject | Yes | ||
| body_html | Yes | ||
| body_text | Yes | ||
| attachments | Yes |