get_thread
Retrieve the email conversation a message belongs to, ordered oldest first, across Inbox, Sent, Archive, or all folders. Use it to find missing replies and each message's folder and UID.
Instructions
Find the conversation a message belongs to, oldest first. By default it looks in the message's own folder, the Inbox, every Sent folder and the Archive; set all_folders to search the whole mailbox. Each entry carries its own folder, uidvalidity and uid.
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": {
"folder": "<folder>",
"uidvalidity": "<uidvalidity>",
"uid": "<uid>"
},
"name": "get_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The message's uid from search_messages. | |
| limit | No | Most messages to return (default 20, at most 50). | |
| folder | Yes | Folder name exactly as list_folders or search_messages returned it. | |
| all_folders | No | Search every folder instead of the usual ones. Slower; use it when the conversation looks incomplete, for example when earlier messages were filed into other folders. | |
| uidvalidity | Yes | The uidvalidity that search_messages returned for this folder. | |
| include_bodies | No | Also return each message's text, with quoted earlier messages left out. |