opencode_session_unrevert
Undo reverts by restoring all reverted messages in a session. Provide the session ID, optionally with a project directory to target a specific project.
Instructions
Restore all reverted messages in a session
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session ID | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |