key_press
Simulate key presses on an iOS simulator using keycodes, enabling testing of keyboard interactions in app development. Supports common keys like Return, Backspace, Tab, and Space.
Instructions
Press a single key by keycode on the simulator. Common keycodes: 40=Return, 42=Backspace, 43=Tab, 44=Space, 58-67=F1-F10.
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": {
"simulatorUuid": "<simulatorUuid>",
"keyCode": "<keyCode>"
},
"name": "key_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | ||
| keyCode | Yes | ||
| simulatorUuid | Yes |