search_codebase
Find code by regex or semantic meaning, with each hit labeled by its containing function or class, so locating callers or usages takes one call instead of raw grep/rg scans.
Instructions
Use instead of Grep/rg on code. Each hit also names the function or class that contains it (in), so "who calls X" or "where is X used" takes one call. Regex by default; semantic=true ranks symbols by meaning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Alias de `pattern`. Regex pattern (regex mode) or natural-language description (semantic mode). | |
| query | No | Alias de `pattern`. Regex pattern (regex mode) or natural-language description (semantic mode). | |
| regex | No | Alias de `pattern`. Regex pattern (regex mode) or natural-language description (semantic mode). | |
| pattern | No | Regex pattern (regex mode) or natural-language description (semantic mode). | |
| project | No | Project name/path (default: active). | |
| semantic | No | If true, interpret `pattern` as a description and rank symbols by embedding cosine similarity. Returns enriched hits with signature/docstring/score. Default false (regex). | |
| max_results | No | Maximum number of results to return (default 100, 0 = unlimited). | |
| ignore_generated | No | Skip generated/minified files (default true). Regex mode only. |