Skip to content

local_history

MCP tools › Workspace and files

Local history of a workspace file, independent of Git: records the file's current state, then lists its revisions newest first (id, time in ms, size, label, deleted). With revision, also returns that revision's content as text.

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

Capabilityworkspace.local_history
AreaWorkspace and files
Accesschanges files
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative file path (the file may no longer exist).
revisionintegerRevision id: whose content to return (local_history) or to restore.minimum 0
dry_runbooleanOnly report what a restore would write (default true; restore_local_revision only).

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 local_history '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "Workspace-relative file path (the file may no longer exist).",
"type": "string"
},
"revision": {
"description": "Revision id: whose content to return (`local_history`) or to restore.",
"type": [
"integer",
"null"
],
"minimum": 0
},
"dry_run": {
"description": "Only report what a restore would write (default true; `restore_local_revision` only).",
"type": [
"boolean",
"null"
]
}
}
}