undo_write
Revert a sandbox file write to restore its previous contents, or delete the file if the write created it. Omit the path to undo the most recent write.
Instructions
Undo a sandbox file write: restores the previous contents, or deletes the file if the write created it. Without 'path' undoes the most recent write.
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 |
|---|---|---|---|
| path | No | File to revert (relative to the sandbox root); omit for the last write |