validate_spec
Validate a diagram specification by running structural and geometry checks, then return any problems found.
Instructions
Validate a diagram spec (an IR object with diagram_type/nodes/edges). Runs vocabulary/structure checks and, if nodes are positioned, geometry checks (on-page, no overlaps). Returns { ok, problems }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | A diagram IR object (see the diagram_from_requirement prompt for the shape). |