restore_file
Restore a single file to its HEAD state, discarding uncommitted changes. Returns restored file path.
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": "restore_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Repo-relative path to the file to restore. | |
| workingDirectory | No | Git repo path. Default current directory. | . |