chat_receive
Receive queued chat messages once, read long messages through context pages, and acknowledge each delivery after review so agents can handle incoming tasks without polling.
Instructions
消息通知到达后只领取一次:v2 最多16条,按 delivery_id 与具体消息 ID 确认;旧协议单条。长消息用 context 连续分页读完才确认。needs_review 先核对,不自动重做。禁止轮询。
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_receive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | Yes | ||
| server | No | 网络房间的 http(s) 服务地址;省略为本机房间 | |
| session_id | No | 当前独立会话的固定 ID;新接入必填并在所有调用中沿用。有原生 thread_id 时须相同,否则本会话生成一次 UUID。省略仅兼容旧接入。 |