Check a layout against a device
check_layoutChecks up to 200 frames of a screen's layout against a device's measured window: whether each frame reaches outside the window, into a safe-area inset, past the display's rounded corner, under the status, navigation or tab bar, across a foldable's fold, or into a reserved region such as a camera. Each finding gives its numbers; a frame near a rounded corner gets the concentric radius. Frames are in the device's unit, in window coordinates from the top left.
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": {
"device": "<device>",
"frames": "<frames>"
},
"name": "check_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | A device id from list_devices, such as iphone-17 or pixel-8. | |
| frames | Yes | ||
| screen | No | A foldable's pose: closed, open, half-open or tent; every other device has main only. | |
| runtime | No | A runtime build such as 24A434, or a version such as 27.2; the device's current build when omitted. | |
| rotation | No | The device's rotation; 90 puts its top edge on the window's left. | |
| orientation | No | The window shape; the reading at rotation 0 when neither this nor rotation is given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| frames | Yes | ||
| screen | Yes | A foldable's pose: closed, open, half-open or tent; every other device has main only. | |
| window | Yes | ||
| dataset | Yes | ||
| runtime | Yes | ||
| rotation | Yes | ||
| cornerRadii | No | ||
| orientation | Yes | ||
| safeAreaInsets | Yes |