index_repository tool
Tool: index_repository
Manually trigger a re-index of the repository. Usually unnecessary because the file watchdog re-indexes changed files automatically on save.
Arguments Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_path | string | Required | Absolute path to the workspace root. |
Tool Input JSONRequest
{
"repo_path": "/path/to/repo"
}Tool Response JSONResponse
Repository re-indexed successfully. Changed: 12 Skipped: 88 Deleted: 0 Total: 100
Developer Best Practices
- Use only after a large external change (e.g. a branch switch) if you want to force a refresh immediately.
- In normal use the watchdog keeps the index fresh, so you rarely need this.