press_button
Press hardware buttons (HOME, LOCK, SIDE_BUTTON, SIRI, APPLE_PAY) on an iOS Simulator to trigger system actions like backgrounding the app or locking the screen.
Instructions
Press a hardware button (HOME backgrounds the app; LOCK locks the screen).
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 | ||
| udid | No | Target simulator UDID. Defaults to the booted sim. |