Act on an element
browser_actPerform one action on a web element—click, type, hover, press, check, select, or scroll—and report any dialog or error it triggers.
Instructions
Do one thing to an element: click, double_click, right_click, hover, focus, type (value; replaces unless append), press (keys like "Enter", "Tab", "Escape", "ArrowDown", "Control+a"; without a target, presses on the focused element), check, uncheck, select (value = option label or value, native or custom dropdown), clear, scroll_into_view. Typing is sent key by key so autocompletes react. The result reports any dialog or error the action caused. For whole forms, prefer browser_invoke with the typed tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from browser_find or browser_capabilities. | |
| keys | No | For press: e.g. "Enter" or "Shift+Tab". | |
| steps | No | Several actions in order, in one call (e.g. open a dropdown, pick an option, press Join). Stops at the first that fails. | |
| tabId | No | ||
| value | No | Text to type, or the option to select. | |
| action | No | ||
| append | No | For type: add to the existing text instead of replacing it. | |
| selector | No | CSS selector, if you have no ref. | |
| dialogText | No | With acceptDialog: what to type into a prompt. | |
| acceptDialog | No | Accept the confirm/prompt dialog this action opens (dialogs are dismissed by default). |