Get Email Thread
get_email_threadRetrieve a full email conversation thread by linking messages through Message-ID, In-Reply-To, and References headers, so same-subject messages from other threads are not mixed in.
Instructions
Get an email conversation thread - messages linked by Message-ID, not just by subject.
Candidates are found by subject (fast, filtered inside Mail), then linked through their Message-ID / In-Reply-To / References headers. Messages that merely share the subject but belong to a different conversation are listed separately instead of being mixed into the thread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name (e.g., "Gmail", "Work") | |
| mailbox | No | Mailbox to search in (default: "INBOX", use "All" for all mailboxes) | INBOX |
| max_messages | No | Maximum number of candidate messages to inspect (default: 50). The cap applies before linking: only the first N subject matches that Mail returns are considered, so the thread is seeded from the newest of those N, not necessarily the newest message overall. Raise it for long-running subjects. | |
| subject_keyword | Yes | Keyword to identify the thread (e.g., "Re: Project Update") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |