get_server_capabilities
Inspect the language server's advertised capabilities to determine which tools are supported before calling them, saving round trips on servers lacking features like type_hierarchy or inlay_hints.
Instructions
Return the language server's capability map and classify every agent-lsp tool as supported or unsupported based on what the server advertised during initialization. Use this to determine which tools will return results before calling them — saves round trips on servers that don't support certain LSP features (e.g. not all servers support type_hierarchy or inlay_hints). Requires start_lsp to have been called first.
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": "get_server_capabilities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||