Edit a diagram
edit_diagramApply natural-language changes to an existing diagram and get updated XML. Creates a new version (credits required). Confirm first, as the diagram is modified.
Instructions
Apply a natural-language change to an existing diagram (e.g. 'add a Redis cache'). Creates a new version and returns the updated XML. Costs credits. Confirm with the user before calling — it mutates the diagram.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram_id | Yes | The id returned by generate_diagram / list_diagrams | |
| edit_prompt | Yes | The change to make, in plain language |