search_codebase
Search codebase files by query pattern and retrieve matches ranked by relevance, with optional scope filters, content inclusion, and configurable result limits.
Instructions
Atomic tool for searching codebase files based on query patterns. Returns raw file matches with relevance scores. Extracted from ResearchOrchestrator per ADR-018.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (e.g., "Docker configuration", "authentication") | |
| scope | No | Optional file scope patterns (e.g., ["src/**", "config/**"]) | |
| maxFiles | No | Maximum files to return | |
| projectPath | No | Path to project root | . |
| includeContent | No | Include file content in results | |
| enableTreeSitter | No | Use tree-sitter for enhanced analysis | |
| relevanceThreshold | No | Minimum relevance threshold (0-1) |