opencode_start_task
Delegate a task to an OpenCode agent, creating a session and starting the prompt without waiting for it to finish.
Instructions
Delegate a task to an OpenCode agent: create a session and start the prompt without waiting for it to finish
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": {
"server_id": "<server_id>",
"prompt": "<prompt>"
},
"name": "opencode_start_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Agent name to delegate to (e.g. 'build') | |
| model | No | Model as 'providerID/modelID' (e.g. 'anthropic/claude-sonnet-4') | |
| prompt | Yes | Prompt/instructions for the agent | |
| server_id | Yes | Id of the server instance to run the task on |