index_rebuild
Rebuilds the entire search index from scratch, recomputing all embeddings. Use only when index_status reports an incompatibility or after changing the embedding model.
Instructions
Discards the whole index and rebuilds it from scratch, including recomputing every embedding. Slow — minutes on a large repository. Use only when index_status reports an incompatibility, or after changing the embedding model.
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_rebuild"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| phase | Yes | ||
| ready | Yes | ||
| stale | Yes | ||
| chunks | Yes | ||
| reason | No | ||
| reused | Yes | ||
| running | Yes | ||
| skipped | Yes | ||
| degraded | Yes | ||
| embedded | Yes | ||
| progress | Yes | ||
| astChunks | Yes | ||
| vecVersion | Yes | ||
| lastUpdated | Yes | ||
| nonCodeChunks | Yes | ||
| fallbackChunks | Yes |