index_folder
Index all text files in a local folder by splitting into chunks and embedding them for retrieval. Replaces any existing index.
Instructions
Index all text files under a local folder for retrieval.
Reads supported text files recursively, splits them into overlapping chunks, and embeds each chunk into a multi-vector representation. Re-indexing replaces any previous index. Returns the number of files and chunks indexed.
Args: folder: Path to a local directory to index.
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": "<folder>"
},
"name": "index_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |