search_repo
Search codebase using semantic queries to locate code fragments for conceptual topics like validation, caching, or authentication. Returns ranked results with file paths and context.
Instructions
Semantic search over the indexed codebase. Use this INSTEAD of Grep when the query is conceptual (e.g. 'where do we validate input', 'how is caching implemented', 'authentication flow'). Returns ranked code fragments with file path, line range, snippet, score and a one-line why excerpt. For exact-string lookup, Grep is still better.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| scope | No | Optional repo-relative path prefix to constrain results. |