Checkpoint a directory (rollback point)
sh_checkpointCreate a labeled snapshot of a working directory to protect against risky changes. Excludes .git and node_modules for efficient storage.
Instructions
Snapshot a working directory under a label so you can restore it later with sh_restore. Excludes .git and node_modules. Take one before a risky or irreversible change.
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": {
"label": "<label>"
},
"name": "sh_checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory to snapshot. Defaults to server cwd. | |
| label | Yes | Checkpoint name ([A-Za-z0-9._-]). |