Edit a diagram
edit_diagramChange a diagram made earlier in this chat with create_diagram: add, remove, rename or reconnect steps, shorten labels, recolour, restructure. Pass its link (https://aiflowchart.io/import/…) and the change in plain English. Use this instead of create_diagram whenever the user wants to adjust a diagram they already have, so their earlier work is kept. Returns a link to the new version plus Mermaid code where available. Uses 1 AI credit.
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": {
"diagram": "<diagram>",
"instruction": "<instruction>"
},
"name": "edit_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram | Yes | The diagram link from an earlier result (https://aiflowchart.io/import/<id>) or just the id. | |
| instruction | Yes | What to change, e.g. "add a refund step after payment", "make the labels shorter", "remove the approval loop". |