Restore checkpoint
restore_checkpointRestore project files to a checkpoint from list_checkpoints. git_sha null resets to the project's very first commit, which discards all later work: only on the human's explicit request.
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": {
"git_sha": "<git_sha>"
},
"name": "restore_checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git_sha | Yes | Checkpoint sha; null = the first commit (wipes later work) | |
| files_only | No | ||
| project_id | No | Project id (or use session from use_project) |