diagram_node
Add, patch, or remove a single diagram step by specifying only the fields to change, leaving others intact. Build flows incrementally by adding steps before their edges.
Instructions
Add, patch or remove one step of a diagram.
Only the arguments you pass are touched, so patching a note leaves the label alone; pass note="" to clear one.
The whole-graph rules are relaxed here on purpose: a step may sit unattached until you add its edges, which is what lets a flow be built up across several calls. diagram() enforces them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | the step's id; a new key adds a step. | |
| uid | Yes | the diagram. | |
| note | No | the step's explanation: reasoning, caveats, history. | |
| label | No | what happens at the step, objectively. | |
| shape | No | start|step|decision|io|end. | |
| delete | No | removes the step together with its edges and its memory links. |