A Model Context Protocol server for Selenium web automation
This server has 12 tools with basic schemas and mixed description quality. Most tools have input schemas visible in compact.py, but descriptions are inconsistent, some are detailed (browser_logs, query_elements, interact_element) while others are trivial (get_page_source, get_page_ready_state). Parameter descriptions are sparse; many lack actionable guidance. No output schemas are documented. Error handling guidance is minimal. Tool naming is reasonable (tabs, navigate, take_screenshot) but some names lack clarity (interact_element vs click, query_elements). The server provides instruction text for LLM guidance but lacks per-tool refinement. STDIO transport caps this at 50 maximum; the definition quality alone would be ~45.
Read console/network/response evidence. peek preserves; consume removes. Network supports event/cursor/time, URL/error fields, filters for regex/method/type/request/status, and default redaction. response requires request_id. Example JSON: {"action":"network","event_type":"response"}
Get the current document readyState.
Get the current page's HTML source code.
inspect diagnoses blockers. Native click auto-scrolls/waits/retries; actions/offset/JavaScript are explicit. Input supports verified contenteditable. scroll is bounded. execution and observed do not assert intent. Example JSON: {"action":"inspect","element_ref":"el_REF"}
Actions: add requires key plus a value or explicit empty-value flag; object mode wins over string mode. read/remove require key. read_all/remove_all need no extra field. Operates on the active page's localStorage.
Navigate active tab. wait_until=initiated returns pending; interactive/complete use readyState; network_idle uses quiet_ms. timeout is seconds. Returns requested_url, final_url after redirects, phases, timeout/error state.
Trivial descriptions for simple query tools (get_page_source, get_page_ready_state). 'Get the current page's HTML source code' and 'Get the current document readyState' are under 50 chars and lack actionable context about when/why to use them vs alternatives.
run_javascript description is vague. 'Execute JavaScript in the active tab's document context' does not explain what return types are supported, whether async functions auto-await, whether exceptions are caught/reported, or what context (window, document scope) is available.
interact_element name is ambiguous. 'interact_element' suggests a generic action, but the tool supports 11 different actions (inspect, click, type, hover, etc.). Clearer naming or a stricter set of related operations would help LLMs choose this tool confidently. Consider: click_element, type_element, inspect_element as separate tools, or rename to element_action with much clearer description.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 53 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 12 | - | v1 |
Query one/many/children, including hidden matches. xpath/css/fields/ref; fields support role/name. options.scope traverses bounded frames/open shadows. Results explain 1800s ref/rerender/navigation policy.
start requires file_name; window_handle fixed; window_handles 2-4 tabs, one MP4 follows active tab via tabs(switch); directory/include_address; synthetic URL header; max_duration_seconds deadline. Always stop once. Sensitive.
Execute JavaScript in the active tab's document context. Supports async functions and injection of element arguments.
list needs no extra field; browser versions, download directory. open/switch/close change active; close never final. Serialize tab-sensitive calls.
mode=viewport/full_page/element; element mode requires element_ref. Safe PNG names; collision suffixes. directory absolute/workspace-relative, no traversal. May contain sensitive data.
One-deadline waits: ready/url/element/text/network_idle/network_response/all/any. options adds polling ignores or cursor/route/JSON predicates; network evidence is peeked, not consumed. Example JSON: {"condition":"element","state":"visible","selector":{"type":"css","value":"#x"}}
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract the right fields from responses. Example: browser_logs returns log entries but the schema (timestamp, level, message, URL, etc.) is not specified. This forces LLMs to guess field names and invites parsing errors.
Parameter descriptions are sparse. For example, interact_element.options is described as 'Additional interaction options' with no detail on what options are valid. query_elements.selector is 'Element selector specification' without explaining whether it accepts xpath, css, or a structured object. These gaps force LLMs to infer from examples or trial-and-error.
Error handling is implicit. No tool description explains what happens on failure, which errors are retryable, or how to recover. For example, navigate may timeout, but should the LLM retry, increase timeout, or try a different URL? Silent failures invite infinite loops.
Sensitive data exposure. Screenshots, videos, page source, logs, and localStorage can contain credentials, PII, and secrets. Descriptions mention this risk ('Sensitive' in record_video, 'May contain sensitive data' in take_screenshot) but do NOT guide users on when to use these tools or how to protect outputs. Missing explicit security warnings and redaction options for each tool.
Composition gaps. Multiple tools operate on element references (interact_element, take_screenshot, query_elements with return_html). The output format of query_elements (element_ref structure) is not documented, so LLMs cannot reliably pass refs to interact_element. This breaks tool chaining.