batch_import
Create many graph nodes and edges in one atomic call: validate the full batch before writing and roll back if any part is rejected.
Instructions
Create many nodes and edges in one call, all or nothing.
The whole batch is checked before anything is written, and undone if the engine rejects part of it. Returns created_nodes, created_edges and node_id_map (batch index to node ID).
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": {
"nodes": "<nodes>"
},
"name": "batch_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | Up to 1000 objects: {"source_ref": "@0", "target_ref": 42, "edge_type": "KNOWS", "properties": {...}}. A ref is "@N" (the Nth node of this batch) or an existing node ID. | |
| nodes | Yes | Up to 500 objects: {"labels": ["Person"], "properties": {...}}. |