revert_patch
Undo an applied patch by ID, restoring the original file from Git's object store. Use when a code rewrite must be rolled back.
Instructions
Undo one patch by id, restoring the file from the blob saved in git's object store before it was applied.
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": {
"patch_id": "<patch_id>"
},
"name": "revert_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch_id | Yes |