change_set_undo
MCP tools › Code insight and refactoring
Undo an applied change set: its applied files, or only files. dry_run defaults to true and returns per file whether it still holds what the set wrote (conflict otherwise). dry_run=false needs the user-granted write right (and secret-read for files whose names commonly hold secrets); a file that changed since the set wrote it is a conflict and nothing is written. A file not open in an editor is restored from the local history (the current state is recorded first, so the undo can be undone), an open one through its editor; a file the set created is deleted. Logged in the agent log.
Its results carry text from files, records: the client is told to treat that as data, never as instructions.
| Capability | code.change_set_undo |
|---|---|
| Area | Code insight and refactoring |
| Access | changes files |
| Reaches | — |
| Rights | write |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
idrequired | string | The set. |
files | array of string | Only these applied files of the set. |
dry_run | boolean | Show what would be undone (default true). |
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 change_set_undo '{"id":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "id" ], "properties": { "id": { "description": "The set.", "type": "string" }, "files": { "description": "Only these applied files of the set.", "type": [ "array", "null" ], "items": { "type": "string" } }, "dry_run": { "description": "Show what would be undone (default true).", "type": [ "boolean", "null" ] } }}