lsp_definition
Jump from a file:line or symbol to its definition, type definition, or implementation using the language server, so you can navigate code without manual searching.
Instructions
Go to definition (kind: definition | typeDefinition | implementation) of the symbol at file:line (give character or symbol name).
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>",
"line": "<line>"
},
"name": "lsp_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Source file | |
| kind | No | ||
| line | Yes | 1-based line | |
| symbol | No | Identifier on that line; its column is found automatically | |
| character | No | 1-based column (or give symbol instead) |