inlay_hints
MCP tools › Code insight and refactoring
Inlay hints of a workspace file from its language server, as the editor shows them: parameter name hints (0-based line and character, label), omitting already-named and single arguments (Kotlin: literal arguments only). JavaScript/TypeScript also get inferred type hints (is_type) and enum values (is_value). Optional line range; empty when the server offers none.
Its results carry text from files, language_server: the client is told to treat that as data, never as instructions.
| Capability | code.inlay_hints |
|---|---|
| Area | Code insight and refactoring |
| Access | reads only |
| Reaches | process |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative file path. |
start_line | integer | First 0-based line (default 0).minimum 0 |
end_line | integer | Last 0-based line, inclusive (default: last line).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 inlay_hints '{"path":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "path" ], "properties": { "path": { "description": "Workspace-relative file path.", "type": "string" }, "start_line": { "description": "First 0-based line (default 0).", "type": [ "integer", "null" ], "minimum": 0 }, "end_line": { "description": "Last 0-based line, inclusive (default: last line).", "type": [ "integer", "null" ], "minimum": 0 } }}