reindex
Refresh search results by updating the index of markdown notes. Re-embeds changed files to ensure accurate retrieval, with an option to force full re-indexing.
Instructions
Re-scan and re-index all markdown notes. Use this if the user has added or changed notes and search results seem stale. Incremental by default (only re-embeds changed files).
Args: force: Re-embed all files regardless of changes (default false)
Returns indexing statistics.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | Yes | Re-embed all files regardless of changes |
Implementation Reference
- The tool "reindex" is called as a subcommand of a binary `SAME_BIN` (likely a prebuilt binary) via a subprocess call. The actual handler implementation resides within the compiled binary, not in the provided source code.
reindex_result = subprocess.run( [SAME_BIN, "reindex", "--force"],