sync_status
Polls a sync job started by sync_start and returns its state, per-category counts, and per-file errors. Use it to track indexing progress or diagnose why a job failed.
Instructions
Poll a sync job started by sync_start.
Returns state ('pending' | 'running' | 'succeeded' | 'failed'), counts (scanned/ingested/skipped/moved/deleted/relabelled/signed/ ignored/unreadable/failed), and any per-file errors. Only the latest job is retained — an old jobId, or any jobId from before a server restart, raises an error.
relabelled counts documents whose labels were rewritten from their stored text, with nothing re-embedded: classify.toml changed, a move put a file under other path rules, or the model answered after a model problem had left a facet unanswered. It stays 0 without a classify.toml. A labelling problem appears in errors with its message prefixed "labels:"; it is not a failure.
signed counts documents given the signature that finds their look-alikes, computed from their stored text with nothing read or embedded again: documents indexed before signatures existed, or whose signature could not be written when they were ingested. An ingest signs its own documents, so it is usually 0. A problem appears in errors prefixed "lookAlikes:"; it is not a failure.
ignored counts the files and folders a .miniragignore rule excluded from the scan, a folder once; a file indexed before its rule was added is deleted from the index and counted under deleted.
unreadable counts indexed sources this installation cannot read because an optional extra is absent (images need [ocr], and so does reading again a PDF that was read with OCR before page numbers were stored); each one appears in errors saying it was kept as it is, but it is not a failure and does not make the job fail.
A folder the scan could not see into (a missing root, one without read permission, an empty folder where a root was mounted) also appears in errors, and nothing indexed under it is deleted. It counts as failed when it is a root, when indexed files are under it, or when the sync was started for it or for a path inside it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jobId": "<jobId>"
},
"name": "sync_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||