Undo recent writes
undo_writesRevert file writes made by the MCP server, restoring previous content or removing created files. Undo multiple steps or roll back to a specific index.
Instructions
Step the last writes back, newest first, each file restored to the bytes it had before that write — which is what Ctrl+Z stands in for here, since the editor keeps its undo stack in a process this server cannot reach. A write that created a file removes it again. Pass steps to undo several, or since with the index a previous write_history reported to land exactly back at that point whatever was written in between; check write_history first, because one tool call can touch more than one file and a half-undone operation is worse than the mistake you meant to take back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Undo back to this journal length, the `index` write_history reported, instead of counting steps | |
| steps | No |