get_message_context
Retrieve messages surrounding a specific message to view context, with configurable number of messages before and after.
Instructions
取某条消息前后各若干条,用来看上下文。返回按时间正序排列。
Args: chat: 对话。 message_id: 中心消息 ID。 before: 往前取几条(最多 50)。 after: 往后取几条(最多 50)。
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": {
"chat": "<chat>",
"message_id": "<message_id>"
},
"name": "get_message_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| after | No | ||
| before | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |