get_thread
Reconstructs an email thread from a message ID by following References and In-Reply-To headers, returning all related messages with plain text, stripped quotes, and newest-first options.
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. Use format="text" to strip HTML, or format="stripped" to also remove quoted replies. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Body format: full=raw (default), text=plain text (strips HTML), stripped=plain text without quoted replies or signatures | full |
| 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. 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. |