search_symbols
Locate code symbols like classes, functions, and methods across a repository by approximate name using AST-based search, bypassing text search limitations.
Instructions
Search symbols by name across the repo using AST (not text search). Finds classes, functions, methods by approximate name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rootDir": "<rootDir>",
"projectRoot": "<projectRoot>",
"query": "<query>"
},
"name": "search_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootDir | Yes | Directory to search in | |
| projectRoot | Yes | Project root for security boundary | |
| query | Yes | Symbol name or partial name to search | |
| fuzzy | No | Enable fuzzy name matching (default: false) | |
| types | No | Filter by symbol types: class_declaration, function_declaration, method_definition, etc. | |
| fileExtensions | No | Extensions to search (default: all supported) | |
| excludeDirs | No | Directories to exclude | |
| maxResults | No | Maximum results (default: 20) |