search_codebase
Search pre-extracted facts about code behavior, design, and assumptions before reading source files. Batch multiple keyword groups with semicolons to save time and tokens.
Instructions
Search the codebase knowledge base for facts about what the code does, how it's built, and what it assumes.
Use this FIRST before reading source files. It returns pre-extracted facts ranked by relevance, saving significant time and tokens.
MULTI-QUERY: Use semicolons to search multiple keyword groups in one call. Example: "payment gateway; checkout flow; stripe webhooks" This runs 3 searches, deduplicates, and returns combined results. ALWAYS batch related searches into one call — this is dramatically cheaper.
Args: query: Search keywords (e.g. "authentication", "payment flow", "database connection") Use semicolons to batch multiple searches: "auth login; session JWT; middleware" category: Optional filter — "behavior" (what it does), "design" (how it's built), or "assumption" (what it expects) min_confidence: Minimum confidence threshold 0.0-1.0 (default: 0.0) limit: Max results per query (default: 20). With batched queries, total results can be up to limit × number of queries (max 65). repo_name: Optional filter to scope search to a specific repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| category | No | ||
| repo_name | No | ||
| min_confidence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |