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.
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) |