lsp_type_definition
Resolves the type definition of a symbol at a given position, jumping to its type, interface, or class definition.
Instructions
Find the definition of the type of a symbol. Maps to textDocument/typeDefinition. Resolves variable types to their type/interface/class definitions.
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>",
"position": "<position>"
},
"name": "lsp_type_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| position | Yes | Line/character position (zero-based) of the symbol. | |
| maxResults | No | Maximum number of results. |