ios_clear_text
Clear a text field on an iOS device using the native element-clear command — reliable for any field length, unlike sending backspaces. Omit label to clear the currently-focused field (tap the field first to focus it); pass label to target a specific field. Pattern: tap field → ios_clear_text → ios_send_keys. Requires an active iOS automation session (auto-starts if needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Element type filter e.g. XCUIElementTypeTextField (used only when label is given). | |
| udid | Yes | iOS device UDID | |
| label | No | Accessibility label/text of the field to clear. Omit to clear the focused field. | |
| strategy | No | Element finding strategy to try first when a label is given. |