refresh
Trigger a background reindex after large external changes to update the code context without restarting the server.
Instructions
Trigger a background reindex without restarting the server. Use after large external changes (git checkout, cache import, file restore). By default blocks until the new index is active (60s timeout). Pass wait=false for fire-and-forget, or timeout to extend the wait window for large repos that need more than 60s to reindex.
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": "refresh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | When false, return immediately with `{triggered: true}` after firing the reindex; do not block on the swap event. Default true. | |
| timeout | No | Seconds to wait for the swap event when wait=true. Clamped to [1, 600]. Ignored when wait=false. Default 60. |