mail_get_email
Retrieve a single email by ID with full body content, attachment metadata, and optional named headers. Choose between HTML and plain text body.
Instructions
Get a single email by ID with full body content and attachment metadata.
Optionally fetch specific headers by name. JMAP requires headers to be requested by name — no wildcard fetch is supported. Use mail_export_email to retrieve all raw headers.
Common useful headers:
X-Delivered-To: original envelope recipient
X-SimpleLogin-Envelope-To: SimpleLogin alias that received the email
X-SimpleLogin-Original-From: real sender behind a SimpleLogin reverse alias
Args: email_id: The JMAP email ID. prefer_html: Return HTML body if available; defaults to plain text. headers: Optional list of header names to fetch (e.g. ["X-Delivered-To"]).
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_id": "<email_id>"
},
"name": "mail_get_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | ||
| prefer_html | No | ||
| headers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |