opencode_agent_delegate
Delegate tasks to specialized agents like plan for analysis without changes, explore for codebase exploration, or custom agents for specific workflows.
Instructions
Delegate a task to a specific agent. Use to invoke specialized agents like "plan" for analysis without changes, "explore" for fast codebase exploration, or custom agents for specific workflows.
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": {
"agent": "<agent>",
"prompt": "<prompt>"
},
"name": "opencode_agent_delegate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent name to invoke (e.g., build, plan, explore, or custom agent) | |
| model | No | Model in format provider/model | |
| prompt | Yes | Task for the agent | |
| sessionId | No | Session ID (creates new if not provided) |