Git reset
git_resetReset the Git repository to a specified revision using mixed, soft, or hard modes, with hard reset requiring explicit confirmation.
Instructions
Reset modes; --hard requires confirm=true.
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": {
"path": "<path>"
},
"name": "git_reset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | HEAD | |
| mode | No | --mixed | |
| path | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||