restore_checkpoint
Restore the current branch to a past checkpoint while preserving later checkpoints. Reloads the editor and returns the resulting version control status.
Instructions
Restore (soft revert) the current branch's working state to a checkpoint. History is preserved — later checkpoints remain. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status. When NOT to use: to permanently erase later checkpoints (use hard_reset_checkpoint).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"checkpointId": "<checkpointId>"
},
"name": "restore_checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchId | No | Branch to restore on (defaults to the current branch) | |
| checkpointId | Yes | Id of the checkpoint to restore (from list_checkpoints) |