press_button
Press a button on a mobile device (home, back, volume, or enter) to simulate user interaction during automated testing.
Instructions
Press a device button (home, back [Android], volumeUp, volumeDown, enter).
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": {
"button": "<button>"
},
"name": "press_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | ||
| device | No | Device id from list_devices. Optional when exactly one device is booted. |