Dispatch opencode task
opencode_dispatchDispatch a background opencode task as a directly-spawned child process, returning a task ID for status polling and result retrieval.
Instructions
Start an opencode run in the background as a directly-spawned child process (no tmux, no shared visibility into the orchestration layer) and return a task_id immediately. Poll with opencode_status, then read opencode_result once done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | provider/model string, e.g. 'opencode-go/minimax-m3' (economy) or 'openai/gpt-5.6-sol' (hard debugging/architecture). Defaults to 'openai/gpt-5.6-luna' --variant high. | |
| prompt | Yes | The message/prompt to send to opencode. | |
| variant | No | Model variant/reasoning effort (e.g. high, max, minimal). Only applied when model is also given. | |
| directory | Yes | Absolute path to the working directory opencode should run in (--dir). | |
| session_id | No | Resume an existing opencode session id instead of starting fresh (passes --continue --session). |