Continue opencode session
opencode_continueResume the prior coding session in the same workspace, send follow-up prompts, and apply changes with configurable sandbox permissions.
Instructions
Continue the opencode session rooted at this workspace.
Resumes the exact session id opencode reported on the last opencode_ask in this
workspace (-s <id>), falling back to opencode's own "most recent session for
this directory" (-c) when that in-memory pin is gone — so it still works after
a server restart. Session scoping is per directory (verified live: the same
-c from a different directory starts a fresh session), so pass the same
workspace you asked in. The permission policy applies per invocation, so
sandbox takes effect here too: analyze read-only with opencode_ask, then
continue with "workspace-write" to apply the fix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watch | No | If true, open the live "watch" view streaming opencode's steps (same viewer as opencode_ask). Default false. | |
| prompt | Yes | Follow-up message for the existing session. | |
| sandbox | No | Permission policy for THIS turn (default "read-only"). Same values and caveats as opencode_ask. | read-only |
| timeout_s | No | Max seconds to wait for opencode to complete. Default 300. | |
| workspace | No | Working root used by the prior session. Defaults to the server cwd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |