Set Poietic attributes
poietic_set_attributesUpdate node or edge attributes in Poetic designs by ID or name, applying all changes atomically in one transaction.
Instructions
Set one or more attributes on an object (node or edge), referenced by ID (preferred) or unique name. On poietic-tool v0.8+ all attributes are applied in a single transaction (one undo history entry). On older builds each attribute is a separate CLI transaction (N entries); the response states which mode was used. To set an edge attribute, use the edge's numeric ID (edges have no names).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Object reference: numeric ID (preferred) or unique name. | |
| design | No | Path to the design file. Defaults to the current design (poietic_use_design) or POIETIC_DESIGN. | |
| attributes | Yes | Attributes to set, e.g. {"formula": "account * rate"} or {"position": [120, 40]}. |