git_reset
Reverts the current HEAD or specific paths to a chosen commit or state. Use it to undo staged or committed changes with modes like soft, mixed, or hard.
Instructions
Reset current HEAD or paths.
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_reset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional local working directory or repository path. | |
| mode | No | Optional reset mode. | |
| target | No | Optional commit or pathspec. |