Skip to content

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.

Capabilityworkspace.file_operation_undo
AreaWorkspace and files
Accesschanges files, ide
Reaches—
Rightswrite
Dry runnone

Arguments

ArgumentTypeDescription
actionstringlist (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.

Terminal window
ferris-idea call ~/my-project file_operation_undo
Input schema as JSON
{
"type": "object",
"properties": {
"action": {
"description": "`list` (default), `undo` or `redo`.",
"type": [
"string",
"null"
],
"default": null
}
}
}