Skip to content

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.

Capabilitycode.change_set_undo
AreaCode insight and refactoring
Accesschanges files
Reaches—
Rightswrite
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
idrequiredstringThe set.
filesarray of stringOnly these applied files of the set.
dry_runbooleanShow 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.

Terminal window
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"
]
}
}
}