mail_get_thread_context
Retrieve all messages in an email thread by providing a folder and anchor UID. Supports pagination, sorting, and snippet inclusion for easy context understanding.
Instructions
Get related messages in the same thread context using Message-ID/References/In-Reply-To. Includes snippets by default.
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": {
"mailbox": "<mailbox>",
"uid": "<uid>"
},
"name": "mail_get_thread_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Message UID to anchor thread context | |
| sort | No | Sort by UID (default: desc/newest-first) | desc |
| limit | No | Max related messages to return (default 20, capped globally) | |
| cursor | No | Opaque pagination cursor from previous thread-context response | |
| mailbox | Yes | Folder name | |
| includeSnippet | No | Include short plain-text snippet per message (default true) |