查看 agent 运行状态
piweb_agent_stateMonitor pi coding agent sessions: see running/waiting sessions globally, or inspect a session's streaming state, context usage, model, and queued messages.
Instructions
不带 session 时给全局快照(哪些会话在跑/等待输入);带 session 时给该会话的详细状态(是否流式中、上下文占用、模型、排队消息)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "piweb_agent_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | 会话 id / 名称;省略则看全局 |