uncommit_write
Undo a committed write in one call: restores pre-commit content atomically, deletes files the commit created, and skips re-staging or re-committing. Refuses if the file drifted unless force is true.
Instructions
One-call undo of a committed write — restores the pre-commit content atomically (deletes files the commit created), no re-staging/re-commit needed. Refuses if the file changed since the commit unless force:true. Requires write_mode 'write' — in 'propose' mode use revert_write + commit_write for the reviewed path.
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": {
"commit_id": "<commit_id>"
},
"name": "uncommit_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Restore even though the file drifted since the commit | |
| commit_id | Yes |