ingest_directory_to_graph
Build a knowledge graph from local files by chunking matching documents, extracting entities and relations across a distributed grid, and writing graph outputs while skipping secret files.
Instructions
Build a knowledge graph from local files: chunk every file under directory_path that matches glob_pattern (~chunk_size characters per chunk, with overlap), extract entities/relations on the grid, then write /<job_id>/output_graph.jsonl and the resolved graph.json. Returns their paths, top entities/relations, timings, and every skipped file with the reason. Only reads inside the allowed roots; refuses secret files (.env, keys, credentials). Relative paths are resolved against the first allowed root. With wait=false returns after dispatch; graph.json appears when the job finishes.
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_directory_to_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| chunk_size | No | ||
| glob_pattern | No | **/*.md | |
| required_tier | No | ||
| directory_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||