search_symbol
Query language server index to find symbol declarations by name across C/C++, C#, JavaScript/TypeScript, and Python projects. Returns token-capped list with kind, name, and file:line locations.
Instructions
Search symbol DECLARATIONS by name/substring across the project via the language server's index (clangd C/C++, Roslyn C#/.NET, tsserver JS/TS, pyright Python — auto-detected) — NOT grep. Returns a token-capped kind name @ file:line list, no source bodies. Use this instead of Bash grep/rg for finding a class/function/type/variable in any of those languages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Symbol name or substring to search for. | |
| projectPath | No | Project root (default: configured projectPath or cwd). | |
| backend | No | clangd | roslyn | typescript | pyright (default: auto-detect from the root). | |
| maxResults | No | Cap on returned locations (default 60). |