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.
| Capability | workspace.local_history |
|---|---|
| Area | Workspace and files |
| Access | changes files |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative file path (the file may no longer exist). |
revision | integer | Revision id: whose content to return (local_history) or to restore.minimum 0 |
dry_run | boolean | Only 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.
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" ] } }}