set_orientation
Rotate a connected iPhone or iPad to portrait, upside-down, or landscape orientations to test an app's rotated layouts; verify results with a screenshot.
Instructions
Set the device's orientation as the interface sees it, to test an app's rotated layouts. An app that doesn't support the orientation may not rotate, and this doesn't check; verify with screenshot. Coordinates change after a rotation, so call describe_ui again before tapping.
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": {
"orientation": "<orientation>"
},
"name": "set_orientation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| orientation | Yes | Orientation to set |