hard_reset_checkpoint
Reset a branch to a specified checkpoint and permanently erase all later checkpoints. Use to discard history irreversibly; for reversible rollbacks, use restore_checkpoint instead.
Instructions
DESTRUCTIVE: reset the branch head back to a checkpoint and PERMANENTLY ERASE every checkpoint created after it. Cannot be undone. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status. When NOT to use: to roll back working state while keeping history (use restore_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": "hard_reset_checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchId | No | Branch to hard reset (defaults to the current branch) | |
| checkpointId | Yes | Id of the checkpoint to hard reset to (from list_checkpoints); all later checkpoints are erased |