Check a design's layout
check_layoutFind layout problems in a design 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. Returns every issue at once, each naming its layers with a severity (error, or info that is often on purpose), and ok when none is an error (cut text is one). Read-only. Run it before finishing a design (edits already report the issues they cause), and confirm an issue with render_design before changing anything; to size text before placing it use measure_text. craft: true adds opt-in craft checks; ignore, allow_bleed and display_width quiet what is intended. Guide topic: critique.
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": {
"page_id": "<page_id>"
},
"name": "check_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Issue kinds that are on purpose, left out of the report so `ok` can be true (empty_first_frame for a reveal at the end, small_text for a fine print line). | |
| 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. |