add_edge
Connect two node ports with an edge to establish data flow between nodes in the 247afk Block Editor. Use after retrieving node IDs from get_graph to create functional connections in scripts.
Instructions
Connect two node ports with an edge. Use get_graph first to know existing node ids.
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": {
"sourceNodeId": "<sourceNodeId>",
"sourceHandle": "<sourceHandle>",
"targetNodeId": "<targetNodeId>",
"targetHandle": "<targetHandle>"
},
"name": "add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceNodeId | Yes | The id of the source node (from get_graph) | |
| sourceHandle | Yes | Output port name on the source node (e.g. exec_out, result, health) | |
| targetNodeId | Yes | The id of the target node (from get_graph) | |
| targetHandle | Yes | Input port name on the target node (e.g. exec_in, condition, message) |