List agents
agents_listList agents for an organization or project, with filters for name, parent, profile, archived status, and subagents; optionally include usage data and sort or paginate results.
Instructions
Items are ordered by created_at descending, then id descending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Case-insensitive glob over the list's logical name. `*` matches zero or more characters, `?` matches one character, and `\` escapes a wildcard. | |
| sort | No | Sort order for named resources that expose created and modified timestamps. | |
| limit | No | Maximum number of items to return in one page. | |
| orgID | Yes | ||
| cursor | No | Opaque pagination cursor from a previous response's next_cursor. Omit for the first page. | |
| projectID | Yes | ||
| include_usage | No | Include each agent's `usage`, so a list can show costs without a request per agent. | |
| parent_agent_id | No | Return only subagents spawned by this agent. | |
| agent_profile_id | No | Return only agents launched from this agent profile. | |
| include_archived | No | Include archived agents. Defaults to false. | |
| include_subagents | No | Include subagents alongside top-level agents. Defaults to false, so only agents without a parent are returned unless parent_agent_id is set. |