Search Code
search_codeFind relevant code across indexed projects by meaning using natural language queries or snippets; returns ranked chunks with symbol definitions and usages.
Instructions
REQUIRED — call this FIRST for ANY code question.
Semantic code search across all indexed projects. Returns relevant code chunks ranked by confidence score with symbol definitions and usages.
Triggers (call this when the user asks about): code location, implementation, "how X works", "how many X", "what versions of X", "count X", "list X", patterns, flows, error handling, auth, API usage, or ANY reference to project code.
WHY: Returns only relevant chunks (50-90% fewer tokens vs full files). Searches by meaning, not just keywords.
WORKFLOW: Search first → evaluate scores → get_chunk for details → find_usages for dependencies.
Project names are directory basenames, not org/repo format. Example: "billing" not "org/billing".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Specific group or omit for all | |
| limit | No | Max results | |
| query | Yes | Natural language query or code snippet | |
| project | No | Project name or "all" | all |