LSP go to definition
nvim_lsp_definitionResolve the definition location(s) of the symbol at a position. Returns file, line and column (1-based) for each location.
Instructions
Resolve the definition location(s) of the symbol at a position. Returns file, line and column (1-based) for each location.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nvim_lsp_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | 1-based column number. Default 1. | |
| line | No | 1-based line number. Default 1. | |
| path | No | Target buffer by file path (must already be open). Ignored if bufnr is set. | |
| bufnr | No | Target buffer number. Omit to use the path or the current buffer. |