Type Text
type_textType printable ASCII text into Android fields, optionally focusing a target first, clearing existing input, or pressing Enter. Check results with snapshot to confirm entry.
Instructions
Type text into a field. Optionally tap a ref or text_target label
first to focus the field, clear the existing value, or press Enter after.
Keystrokes sent while the field is still opening are lost, so if tapping
the field opens a new screen (e.g. a search page), tap it first, wait for
it with snapshot() or wait_for_text(), then type with no target. Check the
result with snapshot(). Only printable ASCII is supported (adb limitation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| text | Yes | ||
| clear | No | ||
| enter | No | ||
| device | No | ||
| text_target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||