restore_snapshot
Undo changes from a risky command by restoring a snapshot, overwriting current files with archived versions.
Instructions
Undo a risky command by restoring a snapshot's files in place.
Overwrites whatever currently exists at each snapshotted path with the
archived copy. Use list_snapshots to find the id.
Args: snapshot_id: The snapshot id to restore. project_root: The project root the snapshot was taken under.
Returns:
{"status": "restored", "paths": [...]} or an error entry.
Example::
restore_snapshot("20260530T101500-a1b2c3", "/home/user/my-project")
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": {
"snapshot_id": "<snapshot_id>",
"project_root": "<project_root>"
},
"name": "restore_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_id | Yes | ||
| project_root | Yes |