lsp_definition
Find the definition location of a symbol by providing a file path and a zero-based line/character position. Returns normalized locations with file path and range.
Instructions
Request textDocument/definition from the LSP server and return normalized locations.
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_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| position | Yes | Line/character position (zero-based) in the file. | |
| maxResults | No | Maximum number of results to return. |