set_orientation
Locks an Android device screen to portrait or landscape orientation, or re-enables auto-rotation, so agents can control display layout during app testing.
Instructions
Lock the screen to portrait or landscape, or re-enable auto-rotation.
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 |
|---|---|---|---|
| serial | No | adb serial; optional when exactly one device is connected | |
| observe | No | What to return after the action: changes (default: only what changed since you last saw the screen, full tree on a new screen), ui (full tree), screenshot, both (tree + screenshot), none | changes |
| settle_ms | No | Wait before observing | |
| orientation | Yes |