Connect Poietic nodes
poietic_connectCreate an edge between two nodes to define flows or parameters, returning the edge's ID for further adjustments.
Instructions
Create an edge between two nodes. Edge types: Flow (between a FlowRate and a Stock; direction is flow direction) and Parameter (from a value node to the node whose formula uses it). NOTE: edge attributes cannot be set at creation; use poietic_set_attributes afterwards if needed. Returns {edgeId}.
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": {
"type": "<type>",
"origin": "<origin>",
"target": "<target>"
},
"name": "poietic_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Edge type name (Flow, Parameter). | |
| design | No | Path to the design file. Defaults to the current design (poietic_use_design) or POIETIC_DESIGN. | |
| origin | Yes | Origin node (ID or name). | |
| target | Yes | Target node (ID or name). |