Provide Inlay Hints
provideInlayHintsDisplays inferred types, parameter names, and return types as inline annotations within the code, making TypeScript type inference visible without explicit annotations.
Instructions
Get inlay hints (inline type annotations) for a range. Shows inferred types, parameter names at call sites, and return types. Useful for understanding what TypeScript infers without explicit type annotations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>",
"start": "<start>",
"length": "<length>"
},
"name": "provideInlayHints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path (absolute or relative to cwd) | |
| start | Yes | Start offset (0-based character position) | |
| length | Yes | Length of range in characters |