reindex_documents
Reindex all documents in the knowledge base in the background. Use force, resume, or full rebuild flags to control the reindexing process. Returns a JSON envelope for tracking progress.
Instructions
Index or reindex all documents in the knowledge base (runs in background).
force — smart reindex (detect changed files + rebuild BM25). Use after
filesystem edits outside add_document/update_document.
full_rebuild — nuclear rebuild (delete + re-embed). Use only after
embedding-model change or index corruption. Mutually exclusive with resume.
resume — pick up an interrupted smart reindex from
data/reindex_checkpoint.json. Falls back to a fresh smart run silently
if the checkpoint is missing/corrupt/drifted (v4.8.0 Fase 4).
Returns a JSON envelope. Poll get_reindex_status() until
reindex.active becomes false. Add/update/URL tools already auto-index —
use these flags only for the recovery/rebuild scenarios above.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| resume | No | ||
| full_rebuild | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |