List agents
list_agentsReturns agents tracked by the host, including restored ones, with lifecycle state, liveness, names, and errors so you can reference them by name in later tool calls.
Instructions
List agents tracked by this host, including ones restored after a reconnect, with their lifecycle state and human-memorable name. Refer to agents by name in later tool calls. Active agents report liveness (live, stale, or unknown), last_heartbeat_at, and a liveness_reason; a backend whose process is gone is marked failed with an AGENT_UNRESPONSIVE error and its capacity slot is released. Failed agents always include a structured error with category, retryable, and recommended_action. Queued and scheduled rows carry start_at and notify. Also reports timeout_seconds, per-backend/per-model concurrency pools, and how many spawns are waiting. Newest first by creation time; order and cursors are stable while agents run, so pages never skip or repeat an agent.
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": "list_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| states | No | ||
| backend | No | ||
| updated_since | No |