get_thread_history
Retrieve paginated message history for a conversation thread by specifying thread ID, project name, and page number. Use character-based pagination to control response size and preview long strings.
Instructions
Retrieve one page of message history for a specific conversation thread.
Uses char-based pagination: pages are built by character budget (max_chars_per_page). Long strings are truncated to preview_chars. Supply page_number (1-based) on every call; use the returned total_pages to request further pages.
Args: thread_id (str): The unique ID of the thread to fetch history for project_name (str): The name of the project containing the thread page_number (int): 1-based page index (required) max_chars_per_page (int): Max character count per page, capped at 30000 (default: 25000) preview_chars (int): Truncate long strings to this length (default: 150)
Returns: Dict with result (list of messages), page_number, total_pages, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | The unique ID of the thread to fetch history for | |
| page_number | Yes | 1-based page index (required) | |
| project_name | Yes | The name of the project containing the thread | |
| preview_chars | No | Truncate long strings to this length | |
| max_chars_per_page | No | Max character count per page, capped at 30000 |