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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "index_repository"
}
}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 |