pressButton
Press hardware buttons on mobile devices to automate testing and control functions. Supports Android and iOS platforms for reliable device interaction.
Instructions
Press a hardware button on the device
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>",
"platform": "<platform>"
},
"name": "pressButton"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | The button to press | |
| platform | Yes | Platform of the device |