browserstage
v0.1.0Automate a browser with accessibility snapshots: navigate, click, type, fill and wait.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_snapshot
Capture accessibility snapshot of the current page
| Parameter | Type | Description |
|---|---|---|
depth | number | Optional maximum depth of the accessibility tree to capture |
filename | string | Optional filename to save the snapshot to |
target | string | Optional element reference from a page snapshot to scope the snapshot to |
browser_find
Search the accessibility snapshot for text or a regular expression
| Parameter | Type | Description |
|---|---|---|
regex | string | Optional regular expression to search for in the page snapshot |
text | string | Optional text to search for in the page snapshot |
browser_click
Perform click on a web page
| Parameter | Type | Description |
|---|---|---|
element * | string | Human-readable description of the element to click |
target * | string | Element reference from a page snapshot to click |
button | string | Optional mouse button to click with: left, right, or middle |
doubleClick | boolean | Whether to double click the element |
browser_hover
Hover over an element on the page
| Parameter | Type | Description |
|---|---|---|
element * | string | Human-readable description of the element to hover over |
target * | string | Element reference from a page snapshot to hover over |
browser_drag
Perform drag and drop between two elements
| Parameter | Type | Description |
|---|---|---|
endElement * | string | Human-readable description of the element to drop onto |
endTarget * | string | Element reference of the element to drop onto |
startElement * | string | Human-readable description of the element to drag from |
startTarget * | string | Element reference of the element to drag from |
browser_drop
Drop files or data onto an element on the page
| Parameter | Type | Description |
|---|---|---|
element * | string | Human-readable description of the element to drop onto |
target * | string | Element reference of the element to drop onto |
paths | array | Optional file paths to drop onto the element |
browser_select_option
Select an option in a dropdown
| Parameter | Type | Description |
|---|---|---|
target * | string | Element reference of the dropdown to select an option in |
values * | array | The option values to select in the dropdown |
browser_type
Type text into an editable element
| Parameter | Type | Description |
|---|---|---|
element * | string | Human-readable description of the editable element to type into |
target * | string | Element reference of the element to type into |
text * | string | The text to type into the element |
slowly | boolean | Whether to type the text one character at a time |
submit | boolean | Whether to press Enter after typing |
browser_press_key
Press a key on the keyboard
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to press, such as Enter, ArrowDown, or a single character |
browser_fill_form
Fill multiple form fields
| Parameter | Type | Description |
|---|---|---|
fields * | array | The form fields to fill; each field carries a name, a type, a value, and an optional element target |
browser_take_screenshot
Take a screenshot of the current page
| Parameter | Type | Description |
|---|---|---|
filename | string | Optional filename to save the screenshot to |
fullPage | boolean | Whether to capture the full scrollable page instead of the viewport |
target | string | Optional element reference from a page snapshot to screenshot instead of the page |
type | string | Optional image format of the screenshot, such as png or jpeg |
browser_run_code_unsafe
Run a Playwright code snippet against the current page (unsafe: arbitrary code execution)
| Parameter | Type | Description |
|---|---|---|
code * | string | The Playwright code snippet to run against the current page |
browser_evaluate
Evaluate JavaScript expression on the page or on an element
| Parameter | Type | Description |
|---|---|---|
function * | string | The JavaScript function to evaluate on the page or on an element |
element | string | Optional human-readable description of the element to evaluate on |
target | string | Optional element reference to evaluate the function on |
browser_wait_for
Wait for text to appear or disappear, or for a specified time to pass
| Parameter | Type | Description |
|---|---|---|
text | string | Optional text to wait for the page to contain |
textGone | string | Optional text to wait for the page to no longer contain |
time | number | Optional time in seconds to wait |
browser_handle_dialog
Handle a browser dialog
| Parameter | Type | Description |
|---|---|---|
accept * | boolean | Whether to accept the dialog (true) or dismiss it (false) |
promptText | string | Optional text to enter into a prompt dialog |
browser_file_upload
Upload one or multiple files
| Parameter | Type | Description |
|---|---|---|
paths | array | Optional file paths to upload; when omitted, an open file chooser is cancelled |
browser_console_messages
Returns all console messages
| Parameter | Type | Description |
|---|---|---|
all | boolean | Whether to return console messages for all frames, not just the current page |
filename | string | Optional filename to save the console messages to |
level | string | Optional console message level to return: info, warning, error, or debug |
browser_network_requests
Returns a numbered list of network requests since loading the page
| Parameter | Type | Description |
|---|---|---|
filename | string | Optional filename to save the request list to |
static | boolean | Optional flag to filter the list by static resource requests |
browser_network_request
Returns the full details of a single network request
| Parameter | Type | Description |
|---|---|---|
index * | number | The index of the network request in the browser_network_requests list |
filename | string | Optional filename to save the request details to |
browser_tabs
List, create, close, or select a browser tab
| Parameter | Type | Description |
|---|---|---|
action * | string | The tab action to perform: list, new, close, or select |
index | number | Optional index of the tab for the close and select actions |
url | string | Optional URL to open when the action is new |
browser_close
Close the current page and the browser
browser_resize
Resize the browser window
| Parameter | Type | Description |
|---|---|---|
height * | number | The new browser window height in pixels |
width * | number | The new browser window width in pixels |