git_revert
Revert an ordered list of commits without opening an editor, enabling scripted or automated rollback workflows.
Instructions
Revert an ordered commit list without opening an editor.
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": {
"revisions": "<revisions>"
},
"name": "git_revert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mainline | No | ||
| revisions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| changes | Yes | ||
| updates | No | ||
| conflicts | Yes | ||
| operation | Yes | ||
| head_after | Yes | ||
| head_before | Yes | ||
| process_ids | Yes | ||
| synchronization_error | No |