Undo
undoRevert file creates, edits, moves, or deletes made through this server by undo id or the newest N calls. Preview changes with a dry run that lists available ids.
Instructions
Revert create, edit, replace_text, patch, move, or delete calls by undo id or the newest N calls. Use when a change made by this server must be reverted. Do not use for outside changes or expired ids; rewrite those with edit or create. Preview with dryRun, which lists ids. A path changed since that call is skipped while the rest revert; it stays under its id for a retry. The in-memory journal keeps up to 64 calls for 30 minutes, fewer when FS_MAX_UNDO_BYTES fills. No redo. Unknown ids fail NOT_FOUND. Returns steps[] of {id, tool, results[]}, each path restored or with an error code. A long list is cut (failures kept), marked truncated with totalResults. Errors only if every path fails.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Undo id from a mutating tool result. Required over HTTP, where all clients share the journal. | |
| steps | No | Revert the newest N calls, newest first. Not with id; rejected over HTTP. Omit both to revert the newest call. | |
| dryRun | No | Preview without changing anything. With no id or steps, previews every journaled call and lists their ids. |