appium_mobile_device_control
Control device behavior for mobile app testing: lock/unlock the screen, perform a shake gesture, or open the notifications panel with a single action parameter.
Instructions
Control device behavior: lock/unlock the screen, shake the device, or open the notifications panel. Use the action parameter to choose what to do.
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_mobile_device_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform. lock: lock the device (optional seconds for timed lock). unlock: unlock the device. shake: perform shake gesture (iOS only). open_notifications: open notifications panel (Android only). | |
| seconds | No | Only for action=lock: lock duration in seconds before auto-unlock. Omit to remain locked until unlock. | |
| sessionId | No | Session ID; defaults to the active session. |