Get a device's readings
get_deviceReturns a device's measured readings: window, pixels, safe-area insets, corner radii, size classes, status, navigation and tab bars, content margin, reserved regions and fold, one reading per screen and rotation. Gives the current runtime's readings unless a runtime is named; narrow them by screen, orientation or rotation. A null value has its reason in the reading's missing.
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": {
"id": "<id>"
},
"name": "get_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A device id from list_devices, such as iphone-17 or pixel-8. | |
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| dataset | Yes | ||
| runtime | Yes | ||
| readings | Yes |