press_key
Simulate hardware or system key presses (enter, home, lock, etc.) on an iOS simulator via an ephemeral Maestro flow. Use noLaunch to avoid disturbing modals.
Instructions
Presses a hardware or system key via an ephemeral Maestro flow on the iOS simulator. Note: back/power/tab are Android key events and have no effect on iOS — they remain in the enum for a future Android backend. Valid keys: enter, home, lock, backspace, volume up, volume down, back, power, tab
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": {
"udid": "<udid>",
"bundleId": "<bundleId>",
"key": "<key>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Simulator / device UDID | |
| bundleId | Yes | App bundle identifier | |
| key | Yes | Key to press | |
| timeoutMs | No | Flow timeout in ms | |
| noLaunch | No | Skip the implicit launchApp attach step (default false). Set true when an open modal or navigation state must not be disturbed. |