LSP document symbols
nvim_lsp_document_symbolsList the symbols (functions, classes, variables, …) defined in a buffer, with their kind and line. Nesting is reported via depth.
Instructions
List the symbols (functions, classes, variables, …) defined in a buffer, with their kind and line. Nesting is reported via depth.
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_document_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bufnr | No | Buffer number. Omit for the current buffer. |