agent_query
Consolidate OpenClaw agent health checks, session listings, activity monitoring, log access, and history reads into one observation command.
Instructions
Multi-view agent observation. Consolidates health checks, session listings, activity monitoring, and log access into a single tool.
"health": gateway reachability (~38ms)
"sessions": all agent sessions with metadata from sessions.json + JSONL
"actions": active processes, recently-modified sessions, recent tool calls, log tail
"logs": gateway/command/heartbeat log scenarios
"history": JSONL transcript read for a specific session
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | [logs/actions] Number of lines to return. Default: 50, max: 200. | |
| view | Yes | Which observation view to return. | |
| scenario | No | [logs] Log scenario to fetch. | |
| agent_ids | No | Agent IDs to check. Default: ["main", "coding", "rachel"]. | |
| log_lines | No | [actions] Number of gateway log lines. Default: 20. | |
| active_only | No | [sessions/actions] Only return recently-active sessions. Default: false. | |
| session_key | No | [history] Session key to read transcript for. |