code_search
Search code by query to find functions, classes, or blocks using keyword, vector, or hybrid matching; optionally follow imports for related code.
Instructions
Search code semantically. Finds functions, classes, and blocks matching a query using keyword + fuzzy matching. Optionally follows imports for related code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Search strategy: keyword (exact/prefix/fuzzy), vector (semantic similarity), or hybrid (RRF fusion of all) | keyword |
| limit | No | Maximum results to return (default: 10, max: 50) | |
| query | Yes | Search query (e.g. "authentication middleware", "database connection") | |
| scope | No | Directory path to limit search scope (default: current working directory) | |
| followImports | No | Follow imports to find related code chunks (default: false) |