get_inlay_hints
Retrieve inlay hints for a specified code range to display inferred type annotations and parameter labels, helping developers understand compiler-inferred information without reading every type annotation.
Instructions
Get inlay hints for a range within a document via LSP (textDocument/inlayHint). Inlay hints are inline annotations that IDEs display in source code — typically inferred type names (e.g. : string) and parameter name labels (e.g. count:). Useful in languages with type inference (TypeScript, Rust, Go) to see what the compiler knows without reading every type annotation. Returns an array of InlayHint objects, each with a position, label, and optional kind (1=Type, 2=Parameter). Returns an empty array if the language server does not support inlay hints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| language_id | No | ||
| start_line | Yes | ||
| start_column | Yes | ||
| end_line | Yes | ||
| end_column | Yes |