List agents
agents_listLists the project's agents with their current activity, newest first by default. Archived agents and subagents are excluded unless requested. Pass activity_state to keep only agents in that activity.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orgID": "<orgID>",
"projectID": "<projectID>"
},
"name": "agents_list"
}
}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 | Organization ID (org_...). | |
| cursor | No | Opaque pagination cursor from a previous response's next_cursor. Omit for the first page. | |
| projectID | Yes | Project ID (proj_...). | |
| include_usage | No | Include each agent's `usage`, so a list can show costs without a request per agent. | |
| activity_state | No | Return only agents whose current `activity.state` matches. `archived` includes archived agents even when `include_archived` is omitted. | |
| 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. |