git_restore
Restore explicit permitted regular files destructively; refuse directory selectors and ambiguous transitions, omit repo_path to use the configured repository, and enforce project policy.
Instructions
Destructively restore explicit permitted regular files; directory selectors and ambiguous transitions are refused. Omit repo_path to use the configured repository. Results and operations are restricted according to project policy.
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 | ||
| source | No | ||
| staged | No | ||
| worktree | No | ||
| repo_path | No | Optional repository root. Omit to use the server's fixed repository. An explicit path must identify that same repository. |