mail_export_email
Download the raw RFC 5322 .eml source of an email, returning complete headers and MIME parts. Use this tool when you need the full message for archival or analysis, as it provides all headers unlike the header-only fetch.
Instructions
Download the raw RFC 5322 .eml source of an email.
Returns the full raw message including all headers and MIME parts. Use this when you need all headers — mail_get_email only fetches headers by name.
Args: email_id: The JMAP email ID. blob_id: Optional blobId; fetched automatically if not provided.
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_export_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | ||
| blob_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |