plan_diagram
Turns diagram analysis into a concrete, positioned layout: assigns ranks, routes orthogonal edges, places guard labels, and preserves manual coordinates.
Instructions
PHASE 2 of diagram generation. Takes the analysis (or any IR spec) and computes a concrete, positioned layout: ranks/rows, orthogonal edge routing through empty corridors, guard-label placement. Explicit x/y on any node or explicit edge waypoints are preserved (manual override).
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": {
"spec": "<spec>"
},
"name": "plan_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The analysis from analyze_requirement, or any diagram IR object. |