search_codebase
Search codebase files by query patterns to retrieve relevant matches with relevance scores. Supports filtering by project path, file scope, content inclusion, and tree-sitter analysis for precise code discovery.
Instructions
Atomic tool for searching codebase files based on query patterns. Returns raw file matches with relevance scores. Extracted from ResearchOrchestrator per ADR-018.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (e.g., "Docker configuration", "authentication") | |
| projectPath | No | Path to project root | . |
| scope | No | Optional file scope patterns (e.g., ["src/**", "config/**"]) | |
| includeContent | No | Include file content in results | |
| maxFiles | No | Maximum files to return | |
| enableTreeSitter | No | Use tree-sitter for enhanced analysis | |
| relevanceThreshold | No | Minimum relevance threshold (0-1) |