[solution]
Flushes pending watcher changes into the index now; full: true forces a complete re-scan. Rarely needed because every query self-flushes via the freshness gate.
Queries self-flush pending changes, so sync exists for bulk filesystem changes the watcher has not delivered yet.
The model can request an explicit index refresh after generated-code changes or branch switches.
| Name | Type | Required | Description |
|---|---|---|---|
| full | boolean | No | false: flush pending changes; true: full re-scan and rebuild. |
Flush pending changes
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sync",
"arguments": {}
}
}Force a full re-scan
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sync",
"arguments": {
"full": true
}
}
}Returns flushed, rescanned, and the resulting index revision.