Git Checkpoint
git.checkpointSave the current Git commit as a checkpoint before making risky edits, allowing you to restore the working tree to this state if needed.
Instructions
Return the current HEAD commit. Use this before a risky edit so git.revert can restore the working tree to this commit.
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": {
"projectPath": "<projectPath>"
},
"name": "git.checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checkpoint | Yes |