git_restore
Discard tracked Git edits without removing untracked files. Revert selected paths or all tracked changes to a source ref, with destructive actions disabled by default.
Instructions
Discard tracked edits only. Untracked files are preserved. Disabled by default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | ||
| source_ref | No | HEAD | |
| restore_all | No | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||