Type text
typeTypes text into a page element or the focused field with trusted per-character key events, optionally clearing existing value, typing slowly, or submitting with Enter.
Instructions
Types text into an element (by ref) or into the focused element like a person: one trusted key event per character (characters without a US key are committed as an IME would). Text longer than 200 characters is inserted in one go like a paste, unless slowly=true. Line breaks are inserted as text; use submit=true or press_key to press Enter. Can clear the existing value first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from page_snapshot or find, e.g. "e12". | |
| text | Yes | Text to type. | |
| clear | No | Select and delete the current value first (default false). | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| slowly | No | Pause briefly after each key, and type key by key even when the text is long (default false). | |
| submit | No | Press Enter after typing (default false). |