git_reset
Unstage specific files or reset the current HEAD to a chosen commit using soft, mixed, or hard modes to keep or discard changes.
Instructions
Unstage files or reset current HEAD to specified state
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 |
|---|---|---|---|
| mode | No | Reset mode: soft (keep changes staged), mixed (keep changes unstaged), hard (discard changes) | |
| files | No | Specific files to unstage (if not provided, resets to commit) | |
| commit | No | Commit hash or reference to reset to (defaults to HEAD) | |
| repoPath | No | Path to git repository (defaults to current directory) |