imap_get_message
Retrieve a parsed email message by ID with configurable body length, optional HTML, headers, and attachment text extraction.
Instructions
Get parsed message details
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 |