git_restore
Restore specified files in a Git working tree or staging area to undo local changes and recover file contents. Use it to revert unwanted edits or unstage modifications.
Instructions
Restore working tree files
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": {
"files": "<files>"
},
"name": "git_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files to restore | |
| staged | No | Restore files in the staging area | |
| repoPath | No | Path to git repository (defaults to current directory) |