[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 guarantee index freshness after large operations like generated code 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.