rotate_device
Set the screen to a fixed portrait or landscape orientation and disable auto-rotate to keep Android UI tests and screenshots consistent.
Instructions
Rotate the device screen to a fixed orientation (disables auto-rotate). Android only.
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": "rotate_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| observe | No | Capture screenshot after rotating. Default: none | |
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. | |
| orientation | Yes | Target orientation |