Add Poietic node
poietic_add_nodeAdd a new Stock, FlowRate, or Auxiliary node to a Poietic design, specifying name, formula, and position. Returns object and plane IDs for subsequent operations.
Instructions
Create a new node (e.g. type Stock, FlowRate, or Auxiliary) with attributes. Typical attributes: name (string, required), formula (string, required - a constant like "100" or an expression like "account * rate"), position ([x, y]). Returns {objectId, planeId}. Thread the returned objectId into later calls; duplicate names resolve arbitrarily upstream, so prefer 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": {
"type": "<type>"
},
"name": "poietic_add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Node type name from the metamodel (Stock, FlowRate, Auxiliary, ...). | |
| design | No | Path to the design file. Defaults to the current design (poietic_use_design) or POIETIC_DESIGN. | |
| attributes | No | Attributes to set at creation, e.g. {"name": "account", "formula": "100"}. |