List OpenCode agents
oc_agentsLists available OpenCode project agents with their modes and assigned models, returning IDs to pass as the agent argument when running tasks.
Instructions
List agents available in an OpenCode project, including each agent's mode and assigned model. Use the returned id as the agent argument of oc_task.
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": "oc_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Absolute project directory (defaults to the bridge's configured directory) |