diagram_relayout
Recompute a diagram's stored node positions from scratch to restore a clean layered layout and fix a diagram dragged into a mess.
Instructions
Recompute a diagram's stored node positions from scratch.
Positions live in the store, not in a viewer, so every reader sees the same picture and positions hand-adjusted in the admin dashboard persist. This discards those adjustments and rebuilds the layered arrangement -- the fix for a diagram dragged into a mess.
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": {
"uid": "<uid>"
},
"name": "diagram_relayout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | the diagram. |