index_codebase
Indexes a codebase for semantic code search by extracting functions, classes, and modules, generating embeddings, and storing them in a vector database.
Instructions
Index a codebase for semantic code search. Runs in BACKGROUND by default - returns immediately and you can check progress with get_index_status. Extracts functions, classes, and modules, generates embeddings, and stores in vector database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the codebase root directory | |
| languages | No | Languages to index (optional, auto-detects if not specified) | |
| background | No | Run in background (default: true). Allows checking status while indexing. Set false to wait for completion. |