getSemanticTokens
Retrieves semantic token types and modifiers for a code file from the language server, with optional line range and token limit.
Instructions
Semantic token types and modifiers for a file from the language server.
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": {
"filePath": "<filePath>"
},
"name": "getSemanticTokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | Last line to include (1-based, inclusive, optional) | |
| filePath | Yes | Workspace or absolute path | |
| maxTokens | No | Max tokens to return (default: 2000, max: 5000) | |
| startLine | No | First line to include (1-based, optional) |