index_repository
Index or re-index a repository to enable code navigation and retrieval tools. Uses cached index for unchanged files to reduce token usage when querying specific code symbols.
Instructions
🔧 REQUIRED FIRST STEP: Index or re-index the repository to enable all context-manager tools. Uses cached index if files haven't changed. ALWAYS call this when starting work on a repository or if files have changed significantly. Fast (<2s for most repos).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to repository root. Default: process.cwd() | |
| forceReindex | No | Force re-indexing even if cache is available. Default: false |