type
Inputs text into a target field, focusing it first when a target is provided; optionally clears existing text or presses Enter.
Instructions
Types text into an input (focuses it first when a target is given).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport x in CSS px (same as screenshot pixels at the default scale). | |
| y | No | Viewport y in CSS px. | |
| nth | No | Pick the nth match (0-based) when several match. | |
| ref | No | Ref from the last `snapshot` (e.g. "e12"). Most reliable. | |
| text | No | Visible text or label of the element (case-insensitive substring). | |
| clear | No | Select existing text first so it gets replaced. | |
| enter | No | Press Enter afterwards. | |
| exact | No | With `text`: require the whole label to match. | |
| value | Yes | ||
| within | No | Selector of a container to search in (e.g. a modal). | |
| selector | No | CSS selector. Searches inside every shadow root; use " >>> " to step into a specific shadow root. |