opencode_fire
Dispatch durable background coding tasks to OpenCode and immediately receive job, session, and message IDs for tracking. Monitor with opencode_check or cancel with job_cancel.
Instructions
Dispatch a durable background task and return its job, session and message IDs immediately. Use opencode_check or opencode_wait to observe; job_cancel stops the task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | OpenCode agent name | |
| title | No | Title for a new session | |
| format | No | Response format: plain text or JSON constrained by a JSON Schema. JSON Schema requires OpenCode permission for the StructuredOutput tool. | |
| prompt | Yes | Task or instruction to send to OpenCode | |
| modelID | No | Model ID from provider discovery | |
| variant | No | Model variant | |
| directory | No | Absolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory. | |
| sessionId | No | Existing session to continue; omit to create one | |
| providerID | No | Provider ID from provider discovery |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| error | No | ||
| jobId | No | ||
| result | No | ||
| status | Yes | ||
| isError | Yes | ||
| directory | No | ||
| messageId | No | ||
| sessionId | No |