build_conversation_thread
Constructs a complete conversation thread by recursively gathering all replies to a root message, enabling users to view entire discussion chains in chronological order.
Instructions
Build a conversation thread starting from a root message.
Returns all messages that are replies to the root message or replies to those replies, recursively.
Args: chat_id: ID of the chat root_message_id: Post number to use as root of the conversation limit: Maximum number of recent messages to load and search (default: 100)
Returns: ToolResponse with BuildConversationThreadPayload containing flat list of all posts in the thread, sorted by post_no. Each post contains reply_to_post_no to reconstruct the tree structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| root_message_id | Yes | ||
| limit | No |