init_codebase
Indexes a codebase by crawling the directory, extracting file summaries and dependencies, and building a semantic search vector store for AI mentoring.
Instructions
Initialize and index a codebase for AI mentoring. This tool:
Crawls the directory structure (respecting .gitignore)
Analyzes each file to extract summaries, imports, and exports
Builds a manifest with file metadata and dependency graph
Creates a vector index for semantic search
Run this before using generate_tutorial or search_codebase.
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": {
"rootPath": "<rootPath>"
},
"name": "init_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootPath | Yes | Absolute path to the root directory of the codebase to index |