Index Vault for Semantic Search
index_vaultBuilds or refreshes the embedding index used by semantic search and similar-note lookup, processing notes in heading-aware chunks and skipping unchanged content.
Instructions
Build or refresh the embedding index used by search_semantic and find_similar_notes. Splits readable notes into heading-aware chunks, sends those chunks to the configured embedding provider (Ollama by default, OpenAI optional), and persists the index to <vault>/.obsidian/cache/mcp-pro-embeddings.json. Requires confirm: "send-vault-text-to-embedding-provider" so callers explicitly acknowledge that vault text will leave this tool boundary. Incremental: notes whose content hash matches the prior pass are skipped. Use force: true to re-embed everything (e.g., after switching models). Emits progress notifications when the client subscribes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | If true, re-embed every note even if its content hash matches the cached one. | |
| folder | No | Restrict the indexing pass to this folder. Notes outside the folder are left untouched. | |
| confirm | No | Required safety latch. Set exactly to "send-vault-text-to-embedding-provider" to acknowledge that readable note chunks will be sent to the configured embedding provider. |