imap_get_message
Retrieve parsed email message details by ID, including headers, optional sanitized HTML, and PDF attachment text, with configurable character limits.
Instructions
Get parsed message details
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": {
"message_id": "<message_id>"
},
"name": "imap_get_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Account identifier (defaults to `"default"`) | default |
| message_id | Yes | Stable message identifier (format: `imap:{account}:{mailbox}:{uidvalidity}:{uid}`) | |
| include_html | No | Include sanitized HTML body | |
| body_max_chars | No | Maximum body characters (100..20000, default 2000) | |
| include_headers | No | Include headers in response | |
| include_all_headers | No | Include all headers (if `true`, overrides curated header list) | |
| extract_attachment_text | No | Extract text from PDF attachments | |
| attachment_text_max_chars | No | Maximum attachment text length (100..50000, requires `extract_attachment_text=true`) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific data payload | |
| meta | Yes | Execution metadata (timestamp, duration) | |
| summary | Yes | Human-readable summary of the operation outcome |