Skip to content

room_restore

MCP tools › Remote, rooms and agents

Restore a file of a room (doc), or several as one change (docs, 1 to 200 paths), to a journal position, or bring a deleted file back (SPEC-0323, Experimental): an ordinary new change, one group in the history, that the room's undo takes back; nothing changes when one file cannot be restored, and it is refused when a file changed where the room could not see it. Needs the user-granted write right and the editor role.

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

Capabilityremote.room_restore
AreaRemote, rooms and agents
Accesschanges files
Reachesnetwork
Rightswrite
Dry runnone

Arguments

ArgumentTypeDescription
hostrequiredstringHost of the remote project.
folderrequiredstringIts folder.
docstringThe file.
docsarray of stringSeveral files restored as one change (SPEC-0323 v9), instead of doc: 1 to 200 paths.
seqrequiredintegerThe journal position to restore to, from room_history.minimum 0

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 room_restore '{"host":"<string>","folder":"<string>","seq":1}'
Input schema as JSON
{
"type": "object",
"required": [
"host",
"folder",
"seq"
],
"properties": {
"host": {
"description": "Host of the remote project.",
"type": "string"
},
"folder": {
"description": "Its folder.",
"type": "string"
},
"doc": {
"description": "The file.",
"type": [
"string",
"null"
],
"default": null
},
"docs": {
"description": "Several files restored as one change (`SPEC-0323` v9), instead of `doc`: 1 to 200 paths.",
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"default": null
},
"seq": {
"description": "The journal position to restore to, from `room_history`.",
"type": "integer",
"minimum": 0
}
}
}