press_button
Press a hardware button once on a connected iPhone or iPad to return home, change volume by one step, or trigger the action or camera button.
Instructions
Press a hardware button once. "home" goes to the home screen without quitting the app (terminate_app quits it). "volumeUp" and "volumeDown" move one step; to reach a level use set_volume. "action" and "camera" run whatever the phone has them set to, and fail on a device without that button. Doesn't report what the press did; check with screenshot.
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": {
"name": "<name>"
},
"name": "press_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Button to press | |
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. |