selenium-webdriver-mcp
v0.5.1Selenium Tools for MCP
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_open
Open a new browser session
| Parameter | Type | Description |
|---|---|---|
browser * | string | Browser to launch |
options | object |
browser_title
Get the current page title
browser_get_url
Get the current page URL
browser_get_page_source
Get the current page source
browser_maximize
Maximize the browser window
browser_resize
Resize the browser window
| Parameter | Type | Description |
|---|---|---|
height * | number | New height of the browser window |
width * | number | New width of the browser window |
browser_refresh
Refresh the current page
browser_switch_to_window
Switch to a different browser window
| Parameter | Type | Description |
|---|---|---|
windowHandle * | string | The handle of the window to switch to |
browser_switch_to_original_window
Switches back to the original browser window
browser_switch_to_window_by_title
Switch to a window by its title
| Parameter | Type | Description |
|---|---|---|
title * | string | The title of the window to switch to |
browser_switch_window_by_index
Switch to a window by its index
| Parameter | Type | Description |
|---|---|---|
index * | number | The index of the window to switch to |
browser_switch_to_window_by_url
Switch to a window by its URL
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the window to switch to |
browser_close
Close the current browser session
browser_find_element
Find an element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_find_elements
Find multiple elements
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_click
Perform a click on an element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_type
Type into an editable field
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
text * | string | Text to enter into the element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_clear
Clears the value of an input element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_get_element_text
Gets the text of an element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_get_attribute
Gets the value of an attribute from an element
| Parameter | Type | Description |
|---|---|---|
attribute * | string | Name of the attribute to get |
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_element_is_displayed
Checks if an element is displayed
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_element_is_enabled
Checks if an element is enabled
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_element_is_selected
Checks if an element is selected
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_switch_to_frame
Switches to an iframe element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_switch_to_default_content
Switches to the default content
browser_switch_to_parent_frame
Switches to the parent iframe
browser_file_upload
Uploads a file using a file input element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
filePath * | string | Absolute path to the file to upload |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_hover
Hover over an element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_wait_for_element
Wait for an element to be present
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
timeout * | number | Timeout in milliseconds |
value * | string | Value for the locator strategy |
browser_drag_and_drop
Perform drag and drop between two elements
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
targetBy * | string | Locator strategy to find target element |
targetValue * | string | Value for the target locator strategy |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_double_click
Perform double click on an element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_right_click
Perform right click (context click) on an element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_select_dropdown_by_text
Select dropdown by visible text
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
text * | string | Visible text of the option to select |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_select_dropdown_by_value
Select dropdown by value
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value of the option to select |
timeout | number | Maximum time to wait for element in milliseconds |
browser_key_press
Press a key on the keyboard
| Parameter | Type | Description |
|---|---|---|
key * | string | Key to press (e.g., 'Enter', 'Tab', 'a', etc.) |
browser_execute_script
Execute JavaScript in the context of the current page
| Parameter | Type | Description |
|---|---|---|
script * | string | JavaScript code to execute |
browser_scroll_to_element
Scroll to an element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_scroll_to_top
Scroll to the top of the page
browser_scroll_to_bottom
Scroll to the bottom of the page
browser_scroll_to_coordinates
Scroll to specific coordinates
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate |
y * | number | Y coordinate |
browser_scroll_by_pixels
Scroll by a specific number of pixels
| Parameter | Type | Description |
|---|---|---|
x * | number | Number of pixels to scroll horizontally |
y * | number | Number of pixels to scroll vertically |
browser_select_checkbox
Select a checkbox
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_unselect_checkbox
Unselect a checkbox
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_submit_form
Submit a form
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_focus_element
Focus on a specific element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_blur_element
Remove focus from a specific element
| Parameter | Type | Description |
|---|---|---|
by * | string | Locator strategy to find element |
value * | string | Value for the locator strategy |
timeout | number | Maximum time to wait for element in milliseconds |
browser_screenshot
Take a screenshot of the current page
| Parameter | Type | Description |
|---|---|---|
outputPath | string | Optional path where to save the screenshot. If not provided, returns base64 data. |
browser_get_cookies
Get all cookies
browser_get_cookie_by_name
Get a cookie by name
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the cookie to get |
browser_add_cookie_by_name
Add a cookie to the browser
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the cookie to add |
value * | string | Value of the cookie to add |
browser_set_cookie_object
Set a cookie in the browser
| Parameter | Type | Description |
|---|---|---|
cookie * | string | Cookie string to set, e.g. 'name=value; Path=/; HttpOnly' |
browser_delete_cookie
Delete a cookie from the browser
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the cookie to delete |
browser_delete_cookies
Delete cookies from the browser