Edit diagram
edit_diagramChange an existing diagram. "diagram" is its id or the site link (.../d/{id}). The batch is applied to the latest stored version, which may include edits the person made on the site; the response shows the current diagram and says what changed outside this chat. Reuse existing variables, and name the loops you add. Removing variables or links is destructive. Commands (applied in order, valid ones kept, rejected ones returned with reasons so you can fix them): addVariable {tempId, name, description}, updateVariable, removeVariable, addLink {from, to, polarity "+"|"-", delay?, explanation}, updateLink, removeLink, updateLoop {loop: variable ids in link order or a label, name, description}, setTitle, setContext. Refer to new variables by a tempId you choose (t1, t2) and to existing ones by id (v3, l4). You never position anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram | Yes | ||
| commands | Yes |