press_button
Control an iOS simulator's Home, Volume Up, and Volume Down hardware buttons to automate device actions and testing.
Instructions
Press a hardware button (home, volumeUp, volumeDown).
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": {
"device_id": "<device_id>",
"button": "<button>"
},
"name": "press_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | Button to press | |
| device_id | Yes | Simulator UDID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |