search_code
Find code by meaning using natural language queries to locate authentication logic, error handling, and other concepts with file locations and call relationships.
Instructions
Search code semantically using natural language queries. USE THIS to find code by concept/meaning (e.g., 'authentication logic', 'error handling'). Requires index_codebase first. Returns relevant code chunks with file locations, function names, and call relationships (who calls what).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language search query | |
| directory | No | Path to the indexed directory (defaults to current directory) | . |
| limit | No | Maximum number of results to return | |
| threshold | No | Maximum distance threshold for results (lower = more similar) | |
| mode | No | Search mode: 'vector' (semantic only), 'fts' (keyword only), 'hybrid' (combined with RRF fusion) | hybrid |
| includeCallContext | No | Include caller/callee information for each result (uses cached call graph) |