get-thread
Retrieve a complete email conversation thread by providing a single message ID. Returns all messages ordered oldest first, with the thread's normalized subject, sender, and read state.
Instructions
Use when: you have one message id and want the whole conversation it belongs to, oldest-first. With an imap: id it threads by References/Message-ID; otherwise it groups by normalized subject. Returns: the thread's normalized subject and its messages (id, date, subject, sender, read state). Do not use when: you only need the single message (use get-message) or are searching by arbitrary criteria (use search-messages).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A message ID in the conversation (numeric or imap:…) | |
| limit | No | Max messages in the thread (default 50) | |
| account | No | Account to search (omit to search all) | |
| mailbox | No | Mailbox to search (omit to search all) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| partial | No | ||
| subject | No | ||
| messages | No |