index_repository
Scans a repository root, hashes changed files, and updates the .repo-index/index.json map, enabling agents to query relevant files instead of grepping.
Instructions
Walk root_path, hash/parse changed files, update the .repo-index/index.json map. Returns a summary.
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": {
"root_path": "<root_path>"
},
"name": "index_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| root_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |