eslint_file
MCP tools › Code insight and refactoring
Check a JavaScript/TypeScript file with the project's own ESLint (node_modules/.bin/eslint with an eslint.config.*/.eslintrc*/eslintConfig in or above its package, inside the workspace; nothing is downloaded): findings with 1-based line, severity, rule, message and whether --fix can fix them. With fix, also the fixed text; dry_run=false writes it, refusing if the file changed meanwhile.
Its results carry text from files, process: the client is told to treat that as data, never as instructions.
| Capability | code.eslint_file |
|---|---|
| Area | Code insight and refactoring |
| Access | changes files |
| Reaches | process |
| Rights | write, trusted-project |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative JavaScript or TypeScript file. |
fix | boolean | Also compute what --fix changes (default false). |
dry_run | boolean | With fix: only return the fixed text (default true); false writes it. |
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 eslint_file '{"path":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "path" ], "properties": { "path": { "description": "Workspace-relative JavaScript or TypeScript file.", "type": "string" }, "fix": { "description": "Also compute what `--fix` changes (default false).", "type": [ "boolean", "null" ] }, "dry_run": { "description": "With `fix`: only return the fixed text (default true); false writes it.", "type": [ "boolean", "null" ] } }}