type_text
Enter text into the focused Android field, or tap a target first, then optionally clear existing content and submit with Enter.
Instructions
Type text into the focused field. Optionally tap a target first to focus it, clear it, and press enter afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Screen x (with y), from a screenshot or get_ui | |
| y | No | ||
| id | No | Match resource id / Compose testTag | |
| text | No | Match element text or content description (case-insensitive) | |
| clear | No | Delete the existing text first | |
| exact | No | Require the whole text/id to match instead of a substring | |
| index | No | Element [ref] from get_ui or a change report | |
| value | Yes | Printable ASCII text to type | |
| serial | No | adb serial; optional when exactly one device is connected | |
| submit | No | Press enter afterwards | |
| observe | No | What to return after the action: changes (default: only what changed since you last saw the screen, full tree on a new screen), ui (full tree), screenshot, both (tree + screenshot), none | changes |
| settle_ms | No | Wait before observing | |
| occurrence | No | Which match to use when several match (0-based) |