list
Show all Cursor SDK agents with their state, elapsed time, cost, and latest activity, filtered by session, directory, or all.
Instructions
List agents with their state, elapsed time, cost and latest activity. One line each.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | session (default) = spawned by this Claude session; cwd = this directory; all = everything. | |
| activeOnly | No | Exclude finished, errored and cancelled agents. |