expand_semantic_keywords_tool
Extract and write semantic keywords into note frontmatter using local LLMs, then rebuild the full-text search index. Batch-process notes missing keywords or force-refresh existing ones.
Instructions
Batch-extract or refresh semantic_keywords for notes via llm_cli (local Gemma4 → Claude CLI → Gemini CLI, in that priority order — see llm_cli.py's module docstring).
Writes extracted keywords into each note's frontmatter and rebuilds FTS index. Skips notes that already have semantic_keywords unless force=True.
Args: note_path: Specific vault-relative path to process (e.g. 'decisions/my-note.md'). Leave empty to process all indexed notes missing keywords. force: If True, overwrite existing semantic_keywords (default False).
Returns: Summary dict: {"processed": N, "skipped": M, "failed": K}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| note_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |