Edit an existing diagram
edit_diagramModify an existing architecture diagram with plain-English instructions, such as 'add a Redis cache', and receive the updated share URL.
Instructions
Apply a plain-English change to a diagram previously created with generate_diagram (e.g. 'add a redis cache between the api and the db'). Returns the updated share URL.
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_id": "<diagram_id>",
"instruction": "<instruction>"
},
"name": "edit_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram_id | Yes | The diagram_id returned by generate_diagram (or a previous edit). | |
| instruction | Yes | The change to apply, in plain English. |