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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"subject_keyword": "<subject_keyword>"
},
"name": "get_email_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 |