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.
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": {
"path": "<path>"
},
"name": "index_codebase"
}
}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. |