Tidy up the diagram
layout_diagramTidies a completed BPMN diagram by recalculating every shape position and connection route while preserving colors, names, and links; returns layout warnings and element counts.
Instructions
Recalculates the position of every shape and the route of every connection, like the editor's "Tidy up" button. Handles pools, lanes, message flows, boundary events, expanded subprocesses, annotations and groups. Colors, names and connections are kept: only positions and routes change. Returns the layout warnings, if any, and the number of shapes and connections. Call it once the drawing is complete, then check the result with get_diagram_image. To place or shift a few shapes without touching the rest, use move_elements.
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": "layout_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||