selenium-webdriver-mcp

v0.5.1
io.github.pshivapr/selenium-webdriver-mcp Checked 7 hours ago Published 14 days ago

Selenium 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

ParameterTypeDescription
browser *stringBrowser to launch
optionsobject

browser_navigate

Navigate to a URL

ParameterTypeDescription
url *stringURL to navigate to

browser_navigate_back

Navigate back in the browser

browser_navigate_forward

Navigate forward in the browser

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

ParameterTypeDescription
height *numberNew height of the browser window
width *numberNew width of the browser window

browser_refresh

Refresh the current page

browser_switch_to_window

Switch to a different browser window

ParameterTypeDescription
windowHandle *stringThe 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

ParameterTypeDescription
title *stringThe title of the window to switch to

browser_switch_window_by_index

Switch to a window by its index

ParameterTypeDescription
index *numberThe index of the window to switch to

browser_switch_to_window_by_url

Switch to a window by its URL

ParameterTypeDescription
url *stringThe URL of the window to switch to

browser_close

Close the current browser session

browser_find_element

Find an element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_find_elements

Find multiple elements

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_click

Perform a click on an element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_type

Type into an editable field

ParameterTypeDescription
by *stringLocator strategy to find element
text *stringText to enter into the element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_clear

Clears the value of an input element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_get_element_text

Gets the text of an element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_get_attribute

Gets the value of an attribute from an element

ParameterTypeDescription
attribute *stringName of the attribute to get
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_element_is_displayed

Checks if an element is displayed

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_element_is_enabled

Checks if an element is enabled

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_element_is_selected

Checks if an element is selected

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_switch_to_frame

Switches to an iframe element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum 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

ParameterTypeDescription
by *stringLocator strategy to find element
filePath *stringAbsolute path to the file to upload
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_hover

Hover over an element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_wait_for_element

Wait for an element to be present

ParameterTypeDescription
by *stringLocator strategy to find element
timeout *numberTimeout in milliseconds
value *stringValue for the locator strategy

browser_drag_and_drop

Perform drag and drop between two elements

ParameterTypeDescription
by *stringLocator strategy to find element
targetBy *stringLocator strategy to find target element
targetValue *stringValue for the target locator strategy
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_double_click

Perform double click on an element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_right_click

Perform right click (context click) on an element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_select_dropdown_by_text

Select dropdown by visible text

ParameterTypeDescription
by *stringLocator strategy to find element
text *stringVisible text of the option to select
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_select_dropdown_by_value

Select dropdown by value

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue of the option to select
timeoutnumberMaximum time to wait for element in milliseconds

browser_key_press

Press a key on the keyboard

ParameterTypeDescription
key *stringKey to press (e.g., 'Enter', 'Tab', 'a', etc.)

browser_execute_script

Execute JavaScript in the context of the current page

ParameterTypeDescription
script *stringJavaScript code to execute

browser_scroll_to_element

Scroll to an element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum 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

ParameterTypeDescription
x *numberX coordinate
y *numberY coordinate

browser_scroll_by_pixels

Scroll by a specific number of pixels

ParameterTypeDescription
x *numberNumber of pixels to scroll horizontally
y *numberNumber of pixels to scroll vertically

browser_select_checkbox

Select a checkbox

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_unselect_checkbox

Unselect a checkbox

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_submit_form

Submit a form

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_focus_element

Focus on a specific element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_blur_element

Remove focus from a specific element

ParameterTypeDescription
by *stringLocator strategy to find element
value *stringValue for the locator strategy
timeoutnumberMaximum time to wait for element in milliseconds

browser_screenshot

Take a screenshot of the current page

ParameterTypeDescription
outputPathstringOptional path where to save the screenshot. If not provided, returns base64 data.

browser_get_cookies

Get all cookies

browser_delete_cookies

Delete cookies from the browser