get_semantic_tokens
Extract semantic token types and modifiers for code elements within a specified file range to understand their syntactic roles, distinct from documentation.
Instructions
Get semantic tokens for a range in a file. Returns each token's type (function, variable, keyword, parameter, type, etc.) and modifiers (readonly, static, deprecated, etc.) with 1-based line/character positions. Use this to understand the syntactic role of code elements — distinct from hover which gives documentation. Only available when the language server supports textDocument/semanticTokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| language_id | No | ||
| start_line | Yes | ||
| start_column | Yes | ||
| end_line | Yes | ||
| end_column | Yes |