Navigation
browser_navigate
Navigate to a URL.The URL to navigate to
browser_navigate_back
Go back to the previous page in the history. Parameters: None Read-only: Nobrowser_close
Close the current page. Parameters: None Read-only: NoElement Interaction
browser_click
Perform click on a web page element.Human-readable element description used to obtain permission to interact with the element
Exact target element reference from the page snapshot
Whether to perform a double click instead of a single click
Button to click, defaults to left
Modifier keys to press (e.g., [“Control”, “Shift”])
browser_hover
Hover over element on page.Human-readable element description used to obtain permission to interact with the element
Exact target element reference from the page snapshot
browser_type
Type text into editable element.Human-readable element description used to obtain permission to interact with the element
Exact target element reference from the page snapshot
Text to type into the element
Whether to submit entered text (press Enter after)
Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.
browser_press_key
Press a key on the keyboard.Name of the key to press or a character to generate, such as
ArrowLeft or aForm Operations
browser_fill_form
Fill multiple form fields in one operation.Fields to fill in. Each field should contain element information and the value to enter.
browser_select_option
Select an option in a dropdown.Human-readable element description used to obtain permission to interact with the element
Exact target element reference from the page snapshot
Array of values to select in the dropdown. This can be a single value or multiple values.
browser_file_upload
Upload one or multiple files.The absolute paths to the files to upload. Can be single file or multiple files. If omitted, file chooser is cancelled.
Advanced Interactions
browser_drag
Perform drag and drop between two elements.Human-readable source element description used to obtain the permission to interact with the element
Exact source element reference from the page snapshot
Human-readable target element description used to obtain the permission to interact with the element
Exact target element reference from the page snapshot
browser_handle_dialog
Handle a browser dialog (alert, confirm, prompt).Whether to accept the dialog.
The text of the prompt in case of a prompt dialog.
Page Inspection
browser_snapshot
Capture accessibility snapshot of the current page. This is the preferred method for understanding page structure and is better than screenshots for automation purposes.Save snapshot to markdown file instead of returning it in the response.
browser_take_screenshot
Take a screenshot of the current page.Image format for the screenshot. Default is png.
File name to save the screenshot to. Defaults to
page-{timestamp}.{png|jpeg} if not specified. Prefer relative file names to stay within the output directory.Human-readable element description used to obtain permission to screenshot the element. If not provided, the screenshot will be taken of viewport. If element is provided, ref must be provided too.
Exact target element reference from the page snapshot. If not provided, the screenshot will be taken of viewport. If ref is provided, element must be provided too.
When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.
browser_console_messages
Returns all console messages from the page.Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to “info”.
Filename to save the console messages to. If not provided, messages are returned as text.
browser_network_requests
Returns all network requests since loading the page.Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.
Filename to save the network requests to. If not provided, requests are returned as text.
JavaScript Execution
browser_evaluate
Evaluate JavaScript expression on page or element.JavaScript function as string:
() => { /* code */ } or (element) => { /* code */ } when element is providedHuman-readable element description used to obtain permission to interact with the element
Exact target element reference from the page snapshot
browser_run_code
Run Playwright code snippet directly.A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example:
async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }Browser Configuration
browser_resize
Resize the browser window.Width of the browser window
Height of the browser window
browser_wait_for
Wait for text to appear or disappear or a specified time to pass.The time to wait in seconds
The text to wait for to appear
The text to wait for to disappear
You must provide either
time, text, or textGone. The tool will wait until the condition is met or timeout occurs.Browser Installation
browser_install
Install the browser specified in the configuration. Description: Installs the browser executable required for Playwright. Call this if you encounter an error about the browser not being installed. Parameters: None Read-only: No Usage:This tool installs the browser specified by the
--browser flag or in the configuration file. If no browser is specified, it installs Chromium by default.
