agent_list
List all registered AI agents and their statuses to verify availability before dispatching or stopping agents.
Instructions
List all agents registered with the orchestrator and their current status. Read-only — no side effects. Returns {ok:true, agents:[{agentId, status, lastSeen, taskCount}], count}. Returns {ok:false, error:"..."} if the registry is unavailable. status_filter accepts one of: "active", "idle", "stopped", or "error" — omit to return all statuses. Call before agent_spawn or agent_stop to confirm the target agent exists and has the expected status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status_filter | No | Filter by status (optional): active, idle, stopped, error |