knowledge_index_directory
Index or update a knowledge directory to enable semantic search across markdown, Python, and Jupyter notebook files. Specify the directory path and optionally control recursion and reindexing.
Instructions
Index or update knowledge directory for semantic search.
Supports: .md (markdown), .py (Python), .ipynb (Jupyter notebooks)
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": {
"directory": "<directory>"
},
"name": "knowledge_index_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | Knowledge base name (from knowledges.yaml) or absolute path to knowledge directory | |
| recursive | No | Recursively index subdirectories (default: True) | |
| force_reindex | No | Force full reindex (default: False) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |