Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Selenium Boot MCP — real-browser automation plus test-code generation.

GOLDEN RULE: never hand-write test or page-object source. After driving the browser, ALWAYS produce code with the generate tool and save its output verbatim. Hand-written code drifts from the framework API (wrong driver access, non-existent helpers) and invents UI elements that do not exist.

Workflow for "automate X" / "write a test for the X form":

  1. start_browser, then navigate to the page.

  2. Inspect the live DOM (get_page_source) and interact ONLY with elements that are really there. Do NOT assume a form has fields it does not render — e.g. only fill username / password if the page actually shows them. Use the assert_* tools to capture the checks you want in the test (visible / text / title / url); passing assertions are recorded and become web-first assertThat(...) assertions in the Selenium Boot output.

  3. BEFORE generating Java, call detect_selenium_boot. If it reports detected=true (or you otherwise know this is a Selenium Boot project), generate with framework="selenium_boot" — EVERY Java generator supports it:

    • generate(language=java, kind=page_object) -> Page extends BasePage, Test extends BaseTest

    • generate(language=java) -> extends BaseTest

    • generate(language=java, runner=junit5) -> extends BaseJUnit5Test

    • generate(language=gherkin) -> steps extend BaseCucumberSteps The selenium_boot flavor uses framework-managed driver (no ChromeDriver setUp/tearDown), accessibility-first locators (getByRole / getByLabel / getByTestId / getByPlaceholder / getByText), a SmartLocator fallback for brittle selectors, and web-first assertThat(...) assertions. It compiles against the framework as-is. For a non-Selenium-Boot project use framework="testng" / "junit5" / "raw", or generate(language=python|csharp). When Selenium Boot is detected, the raw generators prepend a banner recommending you regenerate.

  4. Write each emitted file at the path in its "File:" header, unchanged.

  5. close_browser when finished.

Generated code contains ONLY the elements and actions actually performed, so it compiles and never references non-existent fields. To cover more, interact with more real elements first, then regenerate — do not pad the test by hand.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
start_browserA

Start a browser session. Optional — any tool will auto-start Chrome if no browser is open. Use this to choose Firefox, enable headless mode, or set a custom window size.

navigateB

Navigate the browser to a URL.

take_screenshotA

Take a screenshot and return it as base64.

get_page_sourceA

Return the current page HTML source.

get_page_titleB

Return the current page title.

get_current_urlA

Return the current URL.

close_browserA

Close and quit the browser session.

go_backA

Navigate back in browser history.

refreshB

Refresh the current page.

execute_scriptC

Execute JavaScript in the browser.

inspect_pageA

Discover all interactive elements on the current page — inputs, buttons, selects, checkboxes, textareas, and links — with their best CSS selectors and labels. Use this before writing locators so the AI knows exactly what's on the page.

find_elementB

Find an element and return its text, tag, and attributes.

find_elementsB

Find all matching elements and return their texts.

clickC

Click on an element.

type_textC

Clear and type text into an input field.

get_textC

Get the visible text content of an element.

get_attributeC

Get an attribute value from an element.

select_optionB

Select an option from a dropdown by visible text, value, or index.

hoverC

Hover the mouse over an element.

is_displayedC

Check if an element is visible on the page.

wait_for_elementC

Wait until an element is visible on the page.

scroll_to_elementC

Scroll the page to bring an element into view.

clear_fieldC

Clear the text in an input field.

fill_formA

Fill multiple form fields in a single call. Pass a map of CSS selector → value. Automatically handles text inputs, textareas, checkboxes (true/false), radio buttons, and dropdowns. Optionally clicks a submit button at the end.

accept_alertB

Accept (OK) a JavaScript alert, confirm, or prompt dialog.

dismiss_alertC

Dismiss (Cancel) a JavaScript confirm or prompt dialog.

switch_to_frameA

Switch focus into an iframe. Provide index (integer), name/id (string), or a CSS/XPath selector.

switch_to_default_contentA

Switch back to the main page content from inside a frame.

send_keysA

Send a key or key combination to the focused element (or a specific element if selector is given). Use key names like 'tab', 'enter', 'escape', 'up', 'down', 'f5', or combos like 'ctrl+a', 'shift+tab'.

upload_fileA

Upload a file by sending its absolute path to an element.

assert_titleA

Assert the page title equals or contains expected text.

assert_urlB

Assert the current URL equals or contains expected value.

assert_textB

Assert element text equals or contains expected value.

assert_element_visibleC

Assert an element is visible on the page.

assert_element_not_visibleB

Assert an element is NOT visible (hidden or absent).

assert_attributeC

Assert an element attribute has the expected value.

assert_page_containsC

Assert the full page source or visible text contains a string.

assert_element_countB

Assert number of elements matching selector equals expected count.

generateA

Generate test code or CI config from the recorded session. language: python (pytest) | java | csharp (NUnit) | gherkin (.feature + Java steps) | playwright (TS hints) | github_actions | jenkins | gitlab_ci. In a Selenium Boot project (see detect_selenium_boot) use language=java|gherkin, framework=selenium_boot.

detect_selenium_bootA

Detect whether the working directory is a Selenium Boot project. Call BEFORE generating Java; if detected=true use framework='selenium_boot'.

get_session_logA

Return the raw list of recorded actions in the current session.

clear_session_logA

Clear the recorded action log and start fresh.

migrateA

Analyze an existing Selenium Java project for migration to Selenium Boot (read-only, via selenium-boot-migrator). Returns the JSON report: what maps cleanly and what needs manual work.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3/5.0

Scored across 43 tools

Disambiguation3/5

Several tools overlap: find_element returns text/tag/attributes, duplicating get_text and get_attribute, and is_displayed overlaps with assert_element_visible and find_element. The assert_* family is genuinely distinct from the get_* family, and descriptions help, but an agent still has multiple reasonable choices for reading state or checking visibility.

Naming Consistency4/5

Nearly everything follows snake_case verb_noun (find_element, assert_element_visible, get_page_title, switch_to_frame), with predictable prefixes for assertions and getters. Minor deviations are single-verb tools like click, hover, refresh, migrate, generate, and the question-form is_displayed, but the pattern remains readable.

Tool Count2/5

43 tools is heavy for this surface; the eight assert_* tools, the get_* getters, and find_element/find_elements/inspect_page could be consolidated or parameterized. The breadth (browser control + assertions + code generation + migration) justifies some size, but it sits well past a comfortable scope.

Completeness4/5

Coverage is strong: navigation, element interaction, forms, frames, alerts, file upload, assertions, screenshots, session logging, code generation, and migration are all present. Gaps are minor but real — no cookie handling, window/tab switching, drag-and-drop, or wait-for-invisible — which agents can partly work around with execute_script.

Maintenance

ActivityActive
ResponsivenessLimited data