goToDefinition
Navigate to the definition of a symbol by providing file path, line, and column, using VS Code Language Server Protocol.
Instructions
Go to the definition of a symbol at a given position using VS Code LSP.
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>",
"line": "<line>",
"column": "<column>"
},
"name": "goToDefinition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) | |
| column | Yes | Column (1-based) | |
| filePath | Yes | Workspace or absolute path |