iOS send keys
ios_send_keysType text into the FOCUSED field on an iOS device — tap a text field first. Use \n in text to press the Return/Go key (e.g. "user@example.com\n" to submit). Refuses when nothing is focused instead of reporting a success it cannot back: the device accepts the keystrokes either way, so with no focused field the text goes nowhere and the old behaviour still said it was typed. Pass force:true to send anyway (rare — for surfaces where the active element is not reported). On a device set to direct-input-only this types over the direct input path (no automation session), and the focused-field check above is skipped there since it cannot be checked without one — tap the field first regardless. Otherwise requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to type. Use \n to press Return/Go key. | |
| udid | Yes | iOS device UDID | |
| force | No | Send even when no focused field is reported (default: false) |