ios_key_event
Send key events to iOS simulators using keycodes for automated testing and debugging. Integrates with Metro Logs MCP to enhance React Native development workflows.
Instructions
Send a key event to an iOS simulator by keycode. Requires IDB to be installed (brew install idb-companion).
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": {
"keycode": "<keycode>"
},
"name": "ios_key_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keycode | Yes | iOS keycode to send | |
| duration | No | Optional key press duration in seconds | |
| udid | No | Optional simulator UDID. Uses booted simulator if not specified. |