opencode_run
Send a task to an OpenCode session and wait for its correlated response. Returns a job snapshot; observation timeout leaves the remote session running.
Instructions
Send a task and wait for its correlated response. Returns a job snapshot; observation timeout leaves the remote session running.
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": {
"prompt": "<prompt>"
},
"name": "opencode_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | ||
| title | No | ||
| format | No | ||
| prompt | Yes | ||
| modelID | No | ||
| variant | No | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| sessionId | No | ||
| providerID | No | ||
| maxDurationSeconds | No |