Type into a field
browser_typeInserts text into input, textarea, or contenteditable fields, replacing existing values or simulating per-key typing for autocomplete. Optionally presses Enter to submit.
Instructions
Enter text into an input, textarea or contenteditable. Replaces the existing value by default. Set pressEnter to submit, or mode: 'press' to send real per-key events when a page listens for keydown (autocompletes and search-as-you-type usually do).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `fill` sets the value in one shot; `press` types key by key. | fill |
| clear | No | Clear the field first. Only applies to `press`. | |
| delay | No | Per-key delay for `press`. | |
| value | Yes | Text to enter. | |
| target | Yes | How to find the element. Give exactly one primary strategy (plus `name` with `role`). | |
| timeout | No | ||
| tabIndex | No | Act on this tab just for this call, without changing which tab is active. Defaults to the active tab. To switch tabs for good, use browser_tabs with action 'select'. | |
| profileId | Yes | Browser profile id, as passed to start_profile. | |
| pressEnter | No | Press Enter afterwards. |