chat_context
Recovers room checkpoints, rules, and limited history, or reads original messages by ID, offset, delivery ID, or sequence. Restores compressed context on demand without confirming messages.
Instructions
v2 不带定位参数时恢复检查点、规则和有限历史;不会确认消息。指定 message_id/offset、delivery_id 或 after_seq 时只读原文,不附摘要。长消息连续分页;压缩后按需恢复,不在每条消息或空闲时调用。
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": {
"room": "<room>"
},
"name": "chat_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | Yes | ||
| budget | No | ||
| offset | No | ||
| server | No | 网络房间的 http(s) 服务地址;省略为本机房间 | |
| after_seq | No | ||
| message_id | No | ||
| session_id | No | 当前独立会话的固定 ID;新接入必填并在所有调用中沿用。有原生 thread_id 时须相同,否则本会话生成一次 UUID。省略仅兼容旧接入。 | |
| delivery_id | No |