pt_type_text
Type text into an iOS simulator field, optionally tapping it first. Uses clipboard paste for reliable React Native input, or HID keyboard events otherwise.
Instructions
Type text into the currently focused field, or tap a field first then type.
STRATEGIES:
"paste" (default, RECOMMENDED): Uses clipboard + Cmd+V paste. Works reliably with React Native controlled TextInput components that use onChangeText.
"keyboard": Uses HID keyboard events. Faster but may NOT work with React Native controlled inputs.
IMPORTANT: For React Native apps, always use the "paste" strategy (the default). If you know the (x,y) coordinates of the text field, provide them to auto-tap and focus first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate of the text field to tap before typing (optional if already focused) | |
| y | No | Y coordinate of the text field to tap before typing (optional if already focused) | |
| text | Yes | The text to type into the field | |
| udid | No | Simulator UDID (uses active device if not specified) | |
| strategy | No | Input strategy: "paste" (default, works with React Native) or "keyboard" (HID events, faster) | paste |
| clearFirst | No | Whether to clear the existing text before typing (default: true) |