等待会话这一轮结束并取回复
piweb_wait_for_replyPoll a Pi Web session until its current run finishes streaming, then return the final assistant reply. Use after sending a message without waiting to collect results later.
Instructions
轮询某个会话,等它这一轮跑完(不再流式输出),然后返回最后的助手回复文本。适合先 piweb_send_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": "<session>"
},
"name": "piweb_wait_for_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | 会话 id / 名称 | |
| max_chars | No | 回复文本截断长度,默认 20000 | |
| poll_seconds | No | 轮询间隔,默认 3 | |
| timeout_seconds | No | 最长等待秒数,默认 180 |