file_operation_undo
MCP tools › Workspace and files
Undo and redo of Project-tree file operations in the running window (New, Rename, Paste, Delete). list (default, no right) returns the next undo and redo steps with label, kind and paths. undo and redo skip the window's question, need the write right and are logged. A step is refused without touching anything when its items changed on disk, its target is taken or gone, an editor has unsaved changes, or the kept copy differs. Deleted items return only from .ferris-idea/history/undo (up to 64 MiB) to their old path. File tools (create_file, delete_file, ...) are not in this history. Window over HTTP only.
| Capability | workspace.file_operation_undo |
|---|---|
| Area | Workspace and files |
| Access | changes files, ide |
| Reaches | — |
| Rights | write |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
action | string | list (default), undo or redo. |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project file_operation_undoInput schema as JSON
{ "type": "object", "properties": { "action": { "description": "`list` (default), `undo` or `redo`.", "type": [ "string", "null" ], "default": null } }}