Hand a coding task to opencode
opencode_dispatchDispatches a self-contained coding task to a temporary opencode session and immediately returns a runId for checking results with wait.
Instructions
Creates a temporary opencode session and hands it the task. Returns IMMEDIATELY with a runId, without waiting for the result. Afterwards call 'opencode_wait' with the runId until the run is finished. The task must be described completely and self-contained, because the session knows nothing about this conversation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Complete, self-contained task description including context, files and acceptance criteria. | |
| agent | No | opencode agent for this run only. | |
| model | No | IGNORED — this installation pins model to the opencode default. Anything passed here is discarded, the run proceeds with the pinned value. Do not try to work around this. | |
| title | No | Title of the temporary session. | |
| system | No | Extra system instruction for this run. | |
| directory | No | Project directory opencode should work in. Default: the configured directory. | |
| keepSession | No | Do not delete the session after the run. | |
| permissionMode | No | Permission mode for this run only. May only be STRICTER than the configured "auto" — a looser value is discarded. |