Git revert
git_revertRevert a commit by creating an inverse commit, using the specified repository path and revision. Optionally skip committing to review changes first.
Instructions
Revert a commit by creating an inverse commit.
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>",
"rev": "<rev>"
},
"name": "git_revert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | Yes | ||
| path | Yes | ||
| no_commit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||