get_message_context
Retrieve messages before and after specific message IDs to show conversation context around a target message.
Instructions
Get N messages before and after one or more specific message IDs. Use when the user references "what was being said around message X" or wants to see the conversation surrounding a specific message.
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": {
"session_id": "<session_id>",
"message_ids": "<message_ids>"
},
"name": "get_message_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID | |
| message_ids | Yes | Target message IDs (one or many) | |
| context_size | No | Messages before AND after each target (default 20, max 100) | |
| format | No | Output format: text (default) or json | |
| timezone | No | Timezone for time display (default Asia/Shanghai) |