Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
--configNoPath to the accounts.json configuration file. Defaults to ~/.config/playwright-mcp-router/accounts.json.~/.config/playwright-mcp-router/accounts.json
--playwright-binNoPath to the @playwright/mcp cli.js binary. If not provided, the server may locate it automatically (e.g., when installed globally).

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
router_list_sessionsB

List all active isolated browser sessions managed by playwright-mcp-router, along with configured Chrome accounts (without exposing secrets).

router_close_sessionA

Gracefully close a specific isolated browser session (closes its Chrome tab group and terminates its worker process). Always close your session when finished.

router_close_all_sessionsB

Gracefully close all active browser sessions managed by playwright-mcp-router.

browser_closeB

Close the browser and all open tabs.

browser_resizeC

Resize the browser window

browser_console_messagesC

Returns all console messages

browser_resumeB

Resume script execution after it was paused. When called with step set to true, execution will pause again before the next action.

browser_highlightB

Show a persistent highlight overlay around the element on the page.

browser_hide_highlightA

Remove a highlight overlay previously added for the element.

browser_annotateA

Open the Playwright Dashboard in annotation mode for the current page and wait for the user to draw annotations. Returns the annotated screenshot, ARIA snapshot, and the list of annotations.

browser_handle_dialogD

Handle a dialog

browser_emulate_mediaA

Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.

browser_evaluateC

Evaluate JavaScript expression on page or element

browser_file_uploadC

Upload one or multiple files

browser_dropA

Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.

browser_findA

Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.

browser_fill_formC

Fill multiple form fields

browser_press_keyC

Press a key on the keyboard

browser_typeC

Type text into editable element

browser_navigateC

Navigate to a URL

browser_navigate_backC

Go back to the previous page in the history

browser_network_requestsA

Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.

browser_network_requestA

Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.

browser_start_recordingA

Start recording actions that the user performs in the browser as Playwright code. Use it when the user wants to demonstrate a flow manually. Call browser_stop_recording when the user says they are done to retrieve the recorded actions.

browser_stop_recordingA

Stop the recording started with browser_start_recording and return the recorded actions as Playwright code.

browser_run_code_unsafeB

Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.

browser_take_screenshotA

Take a screenshot of the current page. Use browser_snapshot for actions by default. With the vision capability enabled, use screenshot coordinates with the coordinate-based mouse tools for elements not exposed in the accessibility snapshot.

browser_snapshotB

Capture accessibility snapshot of the current page, this is better than screenshot

browser_clickC

Perform click on a web page

browser_dragC

Perform drag and drop between two elements

browser_hoverC

Hover over element on page

browser_select_optionC

Select an option in a dropdown

browser_tabsC

List, create, close, or select a browser tab.

browser_start_tracingC

Start trace recording

browser_stop_tracingC

Stop trace recording

browser_start_videoC

Start video recording

browser_stop_videoC

Stop video recording

browser_video_chapterB

Add a chapter marker to the video recording. Shows a full-screen chapter card with blurred backdrop.

browser_video_show_actionsA

Annotate subsequent actions performed on the page with a callout that names the action and, when styled, marks the action point and highlights the target element. Useful while video recording or screencasting.

browser_video_hide_actionsB

Stop annotating actions performed on the page.

browser_wait_forB

Wait for text to appear or disappear or a specified time to pass. When both text and textGone are provided, waits for the first one to happen

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.9/5.0

Scored across 41 tools

Disambiguation3/5

Core interaction tools (click, type, hover, drag, select_option, press_key) are clearly distinct, but several clusters overlap: browser_network_request vs browser_network_requests differ only by plurality, browser_start_recording / browser_start_tracing / browser_start_video are three near-identical 'start recording' verbs, and router_close_session / router_close_all_sessions / browser_close have unclear boundaries about what gets terminated. browser_evaluate vs browser_run_code_unsafe and browser_highlight vs browser_video_show_actions also require reading the full description to separate.

Naming Consistency4/5

A predictable prefix scheme (browser_* for page actions, router_* for session management) is applied uniformly across all 41 tools. Within that scheme the ordering drifts between verb-first (browser_take_screenshot) and noun-first (browser_console_messages, browser_snapshot, browser_tabs), and the singular/plural pair browser_network_request(s) is easy to misread, but nothing is chaotic.

Tool Count3/5

41 tools is heavy even for full browser automation, and a meaningful slice of the surface is niche instrumentation rather than core capability (video_chapter, video_show_actions/hide_actions, start/stop_tracing, start/stop_recording, annotate, highlight/hide_highlight, emulate_media). Each earns some place, but the count trends toward over-specialization rather than a tight, well-scoped set.

Completeness4/5

Coverage of the browser-automation lifecycle is strong: navigation and history, full input/gesture set, snapshots and search, console/network inspection, dialogs, tabs, uploads, tracing, video, and explicit session routing. Remaining gaps are moderate rather than blocking — no cookie/storage-state management, no request interception or network mocking, and no download handling.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues