index_docs
Scan markdown files, chunk and embed them into a searchable index for semantic retrieval. Only re-processes changed files to save time.
Instructions
Scan a directory of markdown files, chunk them, embed them, and store them in a local doc index for semantic search. Supports incremental indexing: only re-processes changed files. Use search_docs to query the indexed docs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Clear the doc index for this project before indexing (default: false) | |
| force | No | Force re-index all files even if unchanged (default: false) | |
| exclude | No | Directory names to exclude (default: ['_archive', 'node_modules', '.git']) | |
| project | No | Project namespace (e.g., 'my-project'). Scopes sessions and searches. | |
| directory | Yes | Absolute path to directory containing .md files to index |