sync_start
Reconcile the index with the document roots (or one path inside them).
Instructions
Reconcile the index with the document roots (or one path inside them).
Returns a jobId immediately; poll sync_status until state is 'succeeded' or 'failed'. New and changed files are ingested, byte-identical files skipped, vanished files removed from the index. A file moved to another folder under the same name and with the same bytes keeps its chunks under the new path instead of being read again. Only the latest sync job is retained — starting a new one, or a server restart, discards the previous job's record.
Only one sync runs against an index at a time. If one is already in
progress — in this server or in another process, such as a
minirag-mcp sync in a terminal — this call fails immediately with a
message identifying it, and no job is started. Single-file ingests and
queries are never blocked by a running sync.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||