Fill input
fillSet the value of input, textarea, or select elements, clearing first and typing to trigger input events for React/Vue. For select, pick by value and dispatch change.
Instructions
Set the value of an input, textarea or select element.
Clears the field first, then types the value character by character so that
input events fire and React/Vue-style controlled components actually
register the change (assigning .value directly does not). For , the
option is selected by value and a change event is dispatched.
Use type_text instead when you want to append to a focused field rather than replace its contents. For several fields at once, fill_form does it in one round trip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Element uid from the most recent take_snapshot, e.g. "4_12". uids are invalidated whenever the page changes — if you get "unknown uid", take a fresh snapshot and retry with the new uid. | |
| value | Yes | The text to enter. For a <select> element this must match the option's value attribute, not its visible label. | |
| include_snapshot | No | Append a fresh page snapshot to the response. Worth it when this action changes the page and take_snapshot would be your next call anyway — it saves a round trip, at the cost of a much larger response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |