Type text
type_textTypes literal text as keystrokes into the focused field or a specified element, inserting at the caret without clearing existing content; ideal for short entries or fields that reject set_value.
Instructions
Type literal text as keystrokes into the field that currently has focus, optionally focusing element_id first. Use it for short entries and for fields that reject set_value; use set_value to replace a long value in one step, and press_key for shortcuts or keys such as return and tab. Text is inserted at the caret without clearing what is already there. Typing into password fields is refused by default (see COMPUTER_USE_ALLOW_SECURE_FIELD_INPUT).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Exact text to type, character by character | |
| element_id | No | Element to focus before typing, from get_app_state. Omit to type into whatever currently has focus. | |
| state_query | No | With return_state, list only elements whose role, label or value contains this text, like get_app_state's query | |
| return_state | No | After acting, wait briefly for the UI to settle and append a fresh get_app_state of the app you last read, so you can check the result and pick the next target in the same call. Its ids replace every earlier id. |