ingest_batch
Recursively index files in a directory matching include patterns to batch ingest them into the LightRAG knowledge graph.
Instructions
Recursively index all files in a directory that match specific patterns.
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_path": "<directory_path>"
},
"name": "ingest_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory_path | Yes | Absolute path to the directory to scan | |
| recursive | No | If True, scans subdirectories recursively | |
| max_depth | No | Maximum depth for recursive scanning | |
| include_patterns | No | List of glob patterns for files to include (e.g. ['*.txt', '*.md']) | |
| ignore_patterns | No | List of glob patterns for files to exclude |