search_code
Search code using natural language queries. Returns file paths, line numbers, and short previews to locate relevant code sections.
Instructions
STEP 1 of token-efficient exploration. Semantic search in code (OpenAI embeddings). Returns a lightweight index: file paths, line numbers, short previews — NOT full source. Then: call get_file_outline for file structure, get_file_folded for signatures+JSDoc, and get_symbol ONLY for the specific symbol you need. Never Read whole files after this — you have better tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language search query (e.g., "permission management for projects", "hook that fetches deals") | |
| limit | No | Maximum number of results to return (default: 10) | |
| extensions | No | Filter results by file extensions (e.g., [".ts", ".js"]). Only returns results from files matching these extensions. Useful to exclude content files (JSON, YAML) when searching for code logic. |