undo_refactoring
MCP tools › Code insight and refactoring
Undo the newest refactoring applied through this server with rename_symbol or apply_code_action (dry_run=false), in all files it changed at once. Refuses, changing nothing, when one of those files changed since, and names it. Returns the refactoring's name and files; redo_refactoring applies it again.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | code.undo_refactoring |
|---|---|
| Area | Code insight and refactoring |
| Access | changes files |
| Reaches | — |
| Rights | write |
| Dry run | none |
Arguments
No arguments.
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 undo_refactoringInput schema as JSON
{ "type": "object", "properties": {}}