check_layout
Check layout geometry for interactive targets smaller than 24px and off-screen nodes, returning a structured report regardless of findings.
Instructions
Check layout geometry from the real frame: interactive targets below the 24px minimum hit size, and signal-bearing nodes that fall outside the window (clipped / off-screen). Returns a structured report — a normal result whether or not it finds problems.
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": {
"description": "<description>"
},
"name": "check_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| theme | No | ||
| description | Yes | The UI description: a `fenestra/1` JSON object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offscreen | No | Signal-bearing nodes that extend outside the window bounds. Measured against the window — exact for the authored format (which has no scroll viewports); a builder-built frame with a scroll container would over-report content scrolled below the fold. | |
| small_targets | No | Interactive targets smaller than the 24x24 minimum hit size (WCAG 2.5.8). |