Check a design's layout
check_layoutRead-only
Layout problems after layout: text over other text, layers cut off by a clipping frame or running off the canvas, text too small for the size the design is seen at, and text with too little contrast on what is behind it. Each issue names the layers and has a severity (error or info; info is often on purpose). Confirm an issue with render_design before changing the design. Opt-in craft checks with craft: true.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| craft | No | Run every craft check (all "info", never blocking): orphan, near_touch, raw_hex, empty_frame, chrome_drift, sliver, empty_band. | |
| checks | No | Craft checks to run, by name (see `craft`). | |
| ignore | No | Pairs of layer ids whose overlap is on purpose (a stamp over a headline): not reported. | |
| intent | No | Optional: a few words on why. | |
| margin | No | Content margin in px (one number, or [left, top, right, bottom]): report layers whose painted extent (strokes included) crosses it. | |
| page_id | Yes | The page to work on, as returned by create_design. | |
| allow_bleed | No | Layers (and their children) that bleed past the page or their clipping frame on purpose: not reported. | |
| display_width | No | How wide the design is seen on screen, px. Sets the smallest readable text and what counts as large text. Default: 400 for 1080-wide square or portrait social posts, 1280 for 1920x1080, else the page width. |