simulator_displays
The MCP tool that lists the Team's Simulator's displays, which one is in use, and a foldable's hinge angle.
simulator_displays lists the displays of the Team’s running Simulator and says which one is in use. On a foldable such as iPhone Duo it also gives the hinge angle and which panel is lit. It is read-only. A phone has one display. A foldable has two: the cover display and the inner display. Use a display’s screenId as the display input of simulator_tap, simulator_swipe and simulator_input to send input to that display. Left out, input goes to the display in use. After simulator_fold, call it again until active has moved: that can take up to 3 seconds.
| Read-only | Destructive | Idempotent |
|---|---|---|
| Yes | No | Yes |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
teamId |
string (UUID) | Yes | — | The Team, from list_teams |
simulator |
string | No | The Team’s default device | Which device, by id from list_simulators |
Result
| Field | What |
|---|---|
ok |
true |
displays |
One entry per display |
displays[].screenId |
The display’s id |
displays[].name |
Its name |
displays[].active |
true for the display the device is showing on now |
displays[].integrated |
true when it is built into the device |
displays[].width, displays[].height |
The panel’s size in pixels, before any rotation |
displays[].scale |
Pixels per point |
displays[].quarterTurnsCw |
Quarter turns clockwise from how the panel is mounted to upright (0 to 3) |
hinge |
Only on a foldable; null otherwise |
hinge.degrees |
The hinge angle, 0 closed to 180 flat; null until the device has reported one |
hinge.litPanel |
primary (the cover display) or secondary (the inner display); null when the device could not say |
{
"ok": true,
"displays": [
{ "screenId": 1, "name": "Cover", "active": false, "integrated": true, "width": 1398, "height": 2034, "scale": 3, "quarterTurnsCw": 0 },
{ "screenId": 3, "name": "Inner", "active": true, "integrated": true, "width": 2006, "height": 2852, "scale": 3, "quarterTurnsCw": 1 }
],
"hinge": { "degrees": 180, "litPanel": "secondary" }
}Errors
The errors every Simulator tool can return: see start_simulator.
Example
{"name": "simulator_displays", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000"}}