Get thread
get_threadReconstruct a full email conversation thread by following References and In-Reply-To headers, returning all related messages without marking them as seen. Use get_email first for the message_id.
Instructions
Reconstruct a full email conversation thread by following References and In-Reply-To headers. Returns all related messages. Does NOT mark emails as seen. format: text (default) = HTML converted to readable text with markdown; stripped = text minus quoted replies; full = raw body part. Each body is capped at 5000 chars by default — pass maxLength (0 = unlimited) to change. Use newestFirst=true to show the most recent message in full and older messages as header-only summaries. Use get_email first to obtain the message_id. Each message carries a Bulk line when it is list or machine-generated mail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Body format: text=readable text with markdown links (default), stripped=text without quoted replies or signatures, full=raw body part | text |
| account | Yes | Account name from list_accounts | |
| mailbox | No | Mailbox to search (default: INBOX) | INBOX |
| maxLength | No | Truncate each message body at this many characters (default 5000; 0 = unlimited). A hint shows how many characters remain. | |
| message_id | Yes | Message-ID header value (from get_email) | |
| newestFirst | No | When true, shows the newest message in full and older messages as header-only summaries. Ideal for AI triage of long threads where only the latest reply matters. |