index_directory
Index a local directory for semantic search. Skips unchanged, oversized, and credential-shaped files, and removes stale entries.
Instructions
Index (or re-index) a local directory for semantic search. Walks
recursively, skips .git/node_modules/.venv/etc and files >2MB, and
skips any file whose content is unchanged since the last index (cheap:
a whole-file hash check before touching the embedding model). Files
that were indexed before but no longer exist under path are removed
from the index.
Credential-shaped file names (.env, id_rsa, credentials.json, .netrc,
*.pem, ...) are never indexed. If LOCAL_NOTES_SEARCH_ALLOWED_ROOTS is
set, `path` must resolve inside one of its entries; unset (the default)
means any readable directory is indexable.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| extensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |