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.
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 |