Change a diagram on the board
edit_diagramModify an existing whiteboard diagram in place: add, update, remove, or relabel nodes and edges, and optionally arrange connected shapes into a tidy layout while keeping the board intact.
Instructions
Changes what is already on the board, whoever drew it, without redrawing the rest: the user's moves, colours and text stay as they are. Refer to shapes by id, by a node key you used before, or by the text on them (e.g. "API"). New nodes go next to what they connect to, continuing the flow; their arrows are drawn as they appear. remove takes a box's arrows and labels with it. relayout slides the connected boxes into a fresh tidy layout (only when asked to tidy or rearrange).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "edit_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | How fast shapes appear, so people can follow along (default normal). instant for big changes nobody needs to watch | |
| remove | No | Shapes to remove (a shape: its id, a node key you used, or the text on it); a box takes its arrows with it | |
| spacing | No | ||
| relayout | No | Slide the connected boxes into a fresh layout afterwards (default false) | |
| add_edges | No | ||
| add_nodes | No | ||
| direction | No | Flow direction (default: read from the arrows already there) | |
| update_nodes | No |