List available delegated agents
list_agentsDiscover agents available to delegate_task and create_session, including project-local agents from .claude-opencode/agents.
Instructions
List the agents that delegate_task and create_session can use, including project-local agents from .claude-opencode/agents.
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 |
|---|---|---|---|
| cwd | No | Workspace used to discover project-local agents (optional). |