Search Identifiers
search_identifiersSearch for code identifiers across a repository using AST analysis to find definitions and references with surrounding code context.
Instructions
Search for code identifiers (functions, classes, variables) across the repository via Tree-sitter AST analysis. Returns matching definitions and references with code context.
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": {
"projectRoot": "<projectRoot>",
"query": "<query>"
},
"name": "search_identifiers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Identifier name to search for (case-insensitive substring match) | |
| maxResults | No | Maximum number of results | |
| projectRoot | Yes | Absolute path to the repository root | |
| includeReferences | No | Include reference sites | |
| includeDefinitions | No | Include definition sites |