Input text
input_textEnter text into a mobile app's input field, optionally tapping a target field first to focus it. Enables UI test automation on Android and iOS devices.
Instructions
Type text into the focused field. Optionally target a field first (id/text/resource_id) to tap it before typing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optionally focus this field first | |
| text | Yes | Text to type | |
| index | No | ||
| observe | No | What to return after the action: 'screen' = fresh compact hierarchy, 'diff' = only what changed since last inspect, 'screenshot' = PNG, 'none' = just confirm. | screen |
| device_id | Yes | Device id from list_devices (adb serial like 'emulator-5554', or an iOS simulator UDID) | |
| resource_id | No | ||
| accessibility | No | ||
| per_char_delay_ms | No | Per-character typing delay in ms (default 60). Raise it if a field with live formatting (e.g. a credit-card input) drops or reorders characters; set 0 to commit the whole string at once. |