lint_drawing
Detects drawing-quality issues like label length mismatches and SVG text with no fill to prevent rendering bugs before export.
Instructions
Run structural drawing-quality checks and return JSON {violations: [...]}.
Session mode (default): scans session.objects + drawing_annotations for
label-vs-measured-length divergence (>0.5%, likely axis swap) and
leader-elbow-inside-label-bbox (line struck through text).
SVG mode (svg_path set): scans an SVG file for layer-level pathologies
that only show up at export time — most importantly <text> elements with
fill='none' or no fill attribute (glyphs render as illegible thick outlines).
Each violation is {severity, check, object, message}. Run this after major
drawing additions; running it BEFORE rendering catches the bug at the source.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |