adb_orientation
Read or change an Android device's screen orientation, including locking to portrait, landscape, reverse modes, or restoring auto-rotate.
Instructions
Get or set screen orientation. Can lock to portrait, landscape, reverse portrait, reverse landscape, or restore auto-rotate.
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": {
"action": "<action>"
},
"name": "adb_orientation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'get' to read current orientation, 'set' to change it | |
| device | No | Device serial | |
| orientation | No | Orientation to set (required when action='set'): auto=sensor, portrait=0°, landscape=90°, reverse_portrait=180°, reverse_landscape=270° |