problem_preview
MCP tools › Code insight and refactoring
The editor preview of a problem as the Problems tool window shows it: the lines around a 0-based line of a workspace file (radius lines above and below, default 5), read as the window shows an open file. Returns the first line's 0-based number, the problem's line and column, and each line with its 0-based number and text.
Its results carry text from files, language_server: the client is told to treat that as data, never as instructions.
| Capability | code.problem_preview |
|---|---|
| Area | Code insight and refactoring |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative file. |
linerequired | integer | 0-based line of the problem.minimum 0 |
column | integer | 0-based column of the problem (default 0).minimum 0 |
radius | integer | Lines above and below (default 5, at most 50).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.
ferris-idea call ~/my-project problem_preview '{"path":"<string>","line":1}'Input schema as JSON
{ "type": "object", "required": [ "path", "line" ], "properties": { "path": { "description": "Workspace-relative file.", "type": "string" }, "line": { "description": "0-based line of the problem.", "type": "integer", "minimum": 0 }, "column": { "description": "0-based column of the problem (default 0).", "type": [ "integer", "null" ], "default": null, "minimum": 0 }, "radius": { "description": "Lines above and below (default 5, at most 50).", "type": [ "integer", "null" ], "default": null, "minimum": 0 } }}