opencode_session_fork
Fork an existing coding session, optionally at a specific message, to branch the conversation for parallel or alternative development paths.
Instructions
Fork an existing session, optionally at a specific message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session ID to fork | |
| 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. | |
| messageID | No | Message ID to fork at (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |