appium_orientation
Retrieve the current screen orientation or change it to LANDSCAPE or PORTRAIT using an active Appium session.
Instructions
Get or set the device/screen orientation. Supports action=get and action=set (LANDSCAPE or PORTRAIT).
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": "appium_orientation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Use get to read current orientation, set to change orientation. | |
| sessionId | No | Session ID; defaults to the active session. | |
| orientation | No | Required when action is set. |