goto_definition
Go to the definition of a symbol by specifying its file path, line, and column.
Instructions
Go to definition of a symbol at a given position via 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": {
"file": "<file>",
"line": "<line>",
"col": "<col>"
},
"name": "goto_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | Yes | Column number (1-indexed) | |
| file | Yes | Absolute file path | |
| line | Yes | Line number (1-indexed) |