List LSP clients
nvim_lsp_clientsList language servers attached to a buffer, including their ID, name, root directory, and initialization status. Use this to check if language intelligence is ready.
Instructions
List the language servers attached to a buffer (or the current buffer), with their id, name, root directory and whether they have finished initializing. Use this to check language intelligence is available before calling the other nvim_lsp_* tools.
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_clients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bufnr | No | Buffer number. Omit for the current buffer. |