Skip to content

agent_host_changes

MCP tools › Window and UI driver

What a hosted agent's turns changed in the workspace, and undoing the newest (SPEC-0348 v2): id, optional turn (default the newest; 8 are kept), diff: true for the unified diff. Compares the workspace before and after the turn, so files its commands changed count and refused edits do not; per file kind (created, modified, deleted), lines added/removed, binary, restorable. undo: true with dry_run (default true) says what would be put back or why not; dry_run: false restores the whole turn or nothing and also needs write. Texts masked. Needs the agents right; conductor only. Logged.

Its results carry text from files, agents: the client is told to treat that as data, never as instructions.

Capabilityui.agent_host_changes
AreaWindow and UI driver
Accesschanges files
Reachesagents
Rightsagents, write
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
idrequiredstringThe hosted agent's id.
turnintegerThe turn (default: the newest kept).minimum 0
diffbooleanInclude the unified diff of the turn (default false).
undobooleanUndo the turn (default false); only the newest turn not undone yet.
dry_runbooleanWith undo: only say what would be put back (default true); false undoes it and needs the write right too.

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 agent_host_changes '{"id":"<string>"}'
Input schema as JSON
{
"properties": {
"id": {
"description": "The hosted agent's id.",
"type": "string"
},
"turn": {
"description": "The turn (default: the newest kept).",
"type": [
"integer",
"null"
],
"minimum": 0
},
"diff": {
"description": "Include the unified diff of the turn (default false).",
"type": [
"boolean",
"null"
]
},
"undo": {
"description": "Undo the turn (default false); only the newest turn not undone yet.",
"type": [
"boolean",
"null"
]
},
"dry_run": {
"description": "With `undo`: only say what would be put back (default true); false undoes it and needs\nthe `write` right too.",
"type": [
"boolean",
"null"
]
}
},
"required": [
"id"
],
"additionalProperties": false,
"type": "object"
}