Find a definition
nvim_goto_definitionFind where a symbol is defined in a file by specifying path, line, and column. Uses LSP to return the exact definition location.
Instructions
Find where the symbol at a position is defined, through the 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": {
"path": "<path>",
"line": "<line>",
"column": "<column>"
},
"name": "nvim_goto_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number, 1-based | |
| path | Yes | File path | |
| column | Yes | Column number, 1-based | |
| wait_ms | No | LSP timeout |