reindex
Refresh the document index to add, update, or remove entries based on file changes, keeping search results in sync with disk contents.
Instructions
Refresh the index: pick up new, changed, and deleted files.
Use when documents changed on disk since they were indexed. Runs in
the background; track with index_status. Incremental by default —
unchanged files (by mtime, then content hash) are skipped, files
deleted from disk are purged from the index. folder limits the
refresh to one registered folder (path as shown by list_folders);
omit it to refresh all. force=true rebuilds every file from
scratch regardless of change detection (use after changing chunking
or embedding settings).
Returns {ok, queued: [folder paths], force}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||