get_thread_context
Retrieve cached messages surrounding a specific message ID to get thread context. Specify chat, message ID, and number of messages before and after.
Instructions
Return cached messages around a message ID.
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": {
"message_id": "<message_id>"
},
"name": "get_thread_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Chat ID, @username, or omitted for TELEGRAM_DEFAULT_CHAT_ID. | |
| after | No | Approximate number of message IDs after center. | |
| before | No | Approximate number of message IDs before center. | |
| message_id | Yes | Center message ID. |