type_text
Enters text into a targeted field on an Android device. It can clear the field first, press Enter to submit, and verify the text appeared by re-reading the screen.
Instructions
Type text into a field on the phone.
Args:
text: The text to type. Use "\n" for a line break.
target: The field to type into, as a number or label from read_screen.
When omitted, the text goes to whatever already has focus.
replace: Clear the field first instead of appending to it.
submit: Press Enter afterwards, for search bars and message boxes.
verify: Re-read the screen afterwards and report whether the text
actually landed, which catches a tap that missed the field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to type, or the text to replace the clipboard with. | |
| submit | No | Press Enter afterwards, for search bars and message boxes. | |
| target | No | Which control, by its number from read_screen or by its visible label. | |
| verify | No | Read the screen back afterwards and report whether the text landed. | |
| replace | No | Clear the field first instead of adding to what it holds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |