ui_smart_fill
Locates and taps a UI element on an Android screen, injects specified text, and optionally presses ENTER. If targeting a label, it smartly finds the nearest input field.
Instructions
Find a UI element, tap it, inject text, and optionally press ENTER. Smartly finds the nearest input field when targeting a label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text content to search for to find the element | |
| index | No | If multiple elements match, which one to tap (0-indexed) | |
| serial | No | Device serial number | |
| className | No | Class name to match exactly | |
| exactMatch | No | If true, text and contentDesc require exact matches | |
| pressEnter | No | Press ENTER key after typing | |
| resourceId | No | Resource ID to match exactly | |
| textToType | Yes | The text to inject into the field | |
| contentDesc | No | Content description to search for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| success | Yes |