check_diagram
Check ASCII/Unicode diagrams for misalignments and arrow issues. Get status, warnings with hints, and box-edge structure to confirm your intended meaning before rendering.
Instructions
Validate an ASCII/Unicode box diagram without writing anything. Returns 'status', 'summary', warnings with concrete 'hint's (e.g. 'the arrowhead v at row 5 col 5 is one column right'), and the structure: boxes and edges (which box each arrow connects). Use it to confirm a diagram means what you intended before rendering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repair | No | Also fix typical misalignment; report.repair lists the edits and report.repair.text is the corrected diagram | |
| diagram | Yes | The diagram as plain text with real line breaks (a markdown code block is fine). Boxes: +--+ / | | / +--+ or ┌─┐ │ │ └─┘. Arrows end in v ^ < > or ▼ ▲ ▶ ◀ touching (or one space from) the box they point at. | |
| describe | No | Include boxes and edges (default true) |