index_folder
Index or re-index documents in a folder for semantic search, processing only changed files and storing embeddings in a local vector database.
Instructions
Index or re-index all documents in a folder for semantic search.
Scans the folder for supported document types (.txt, .md, .pdf, .docx, .pptx, .csv), extracts text, splits into chunks, computes embeddings, and stores them in a local vector database. Only processes files that have changed since the last indexing run. Safe to call multiple times — unchanged files are skipped automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"folder_path": "<folder_path>"
},
"name": "index_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recursive | No | Whether to index subdirectories recursively | |
| file_types | No | File extensions to index, e.g. ['.pdf', '.md']. Defaults to all supported types: .txt, .md, .pdf, .docx, .pptx, .csv | |
| folder_path | Yes | Absolute path to the folder to index |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||