undo_write
Reverse the latest task write by restoring its previous state or removing a newly created task. Use dryRun to preview the revert before applying changes.
Instructions
WRITE. Reverses a recorded write using the before-image the ledger captured: restores an updated task to its prior state, or deletes a task that was created. Omit actionId to undo the most recent undoable write. Pass dryRun to preview the plan without changing anything. Records a compensating action.reverted entry.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "undo_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview the revert plan without writing. | |
| actionId | No | Ledger action id to reverse (from `list_actions`). Omit to undo the most recent undoable write. |