press_key
Simulates iPhone hardware and keyboard key presses—back, home, lock, volume, enter, navigation, and editing keys—so an agent can control a real device during automation.
Instructions
Press: back, home, lock, volume_up, volume_down, enter (also search/go/send/done: taps the keyboard's action key when shown), backspace, tab, escape, space, up, down, left, right.
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": {
"key": "<key>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| max_wait_ms | No | ||
| observe_after | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |