session_wait
Waits for a busy session to become idle or time out, then returns new messages and whether a user answer is pending.
Instructions
轮询到 busy 变 false 或超时(默认 120s,上限 600s),返回这期间的新消息(全文)与是否在等用户回答。用户从前端 stop/插话时如实返回,不自动续发。
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": {
"sessionId": "<sessionId>"
},
"name": "session_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 每次轮询取多少条(默认 50) | |
| sessionId | Yes | Bridge 会话 ID(必须是本连接器登记册内的会话;session_adopt 是唯一接管入口) | |
| timeoutMs | No | 默认 120000 |