get_chat_context
Retrieve surrounding messages for a given message ID to expand a search hit and see the full chat context. Configure before/after counts to control the range.
Instructions
Show the messages surrounding one message, to expand a search hit.
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_chat_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No | ||
| message_id | Yes |