Playwright

83 tools. 63 can modify or destroy data without limits.

11 destructive tools with no built-in limits. Policy required.

Last updated:

63 can modify or destroy data
20 read-only
83 tools total

Community server · catalogue entry checked 31/10/2026

How to control Playwright ↓

What Playwright exposes to your agents

Read (20) Write / Execute (52) Destructive / Financial (11)
Critical Risk

The most dangerous Playwright tools

63 of Playwright's 83 tools can modify, destroy, or commit something on every call — and an agent calls them with no built-in limits.

How to control Playwright

PolicyLayer is an MCP gateway — it sits between your AI agents and Playwright, and nothing reaches the server without passing your rules. These are the rules we recommend:

Deny destructive operations
{
  "browser_console_clear": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Blocked by default. Requires approval."
      }
    ]
  }
}

Destructive tools should never be available to autonomous agents without human approval.

Rate limit write operations
{
  "browser_annotate": {
    "limits": [
      {
        "counter": "browser_annotate_per_hour",
        "window": "hour",
        "max": 30,
        "scope": "grant"
      }
    ]
  }
}

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
{
  "browser_console_messages": {
    "limits": [
      {
        "counter": "browser_console_messages_per_minute",
        "window": "minute",
        "max": 60,
        "scope": "grant"
      }
    ]
  }
}

Controls API costs and prevents retry loops from exhausting upstream rate limits.

  1. Create a free account and register Playwright — nothing to install.
  2. Add these rules — paste them, or build them visually. Tune the limits to your setup.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
ENFORCE POLICY ON PLAYWRIGHT →

Instant setup, no code required.

All 83 Playwright tools

EXECUTE 30 tools
Execute browser_check Check a checkbox or radio button Execute browser_click Perform click on a web page Execute browser_close Close the page Execute browser_drag Perform drag and drop between two elements Execute browser_emulate_media Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted p Execute browser_evaluate Evaluate JavaScript expression on page or element Execute browser_file_upload Upload one or multiple files Execute browser_fill_form Fill multiple form fields Execute browser_handle_dialog Handle a dialog Execute browser_hover Hover over element on page Execute browser_mouse_click_xy Click mouse button at a given position Execute browser_mouse_drag_xy Drag left mouse button to a given position Execute browser_mouse_move_xy Move mouse to a given position Execute browser_navigate Navigate to a URL Execute browser_navigate_back Go back to the previous page in the history Execute browser_navigate_forward Go forward to the next page in the history Execute browser_press_key Press a key on the keyboard Execute browser_reload Reload the current page Execute browser_resize Resize the browser window Execute browser_run_code_unsafe Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is R Execute browser_select_option Select an option in a dropdown Execute browser_start_recording Start recording actions that the user performs in the browser as Playwright code. Use it when the user wants t Execute browser_start_tracing Start trace recording Execute browser_start_video Start video recording Execute browser_stop_recording Stop the recording started with browser_start_recording and return the recorded actions as Playwright code. Execute browser_stop_tracing Stop trace recording Execute browser_stop_video Stop video recording Execute browser_tabs List, create, close, or select a browser tab. Execute browser_type Type text into editable element Execute browser_wait_for Wait for text to appear or disappear or a specified time to pass. When both text and textGone are provided, wa
WRITE 22 tools
Write browser_annotate Open the Playwright Dashboard in annotation mode for the current page and wait for the user to draw annotation Write browser_cookie_set Set a cookie with optional flags (domain, path, expires, httpOnly, secure, sameSite) Write browser_generate_locator Generate locator for the given element to use in tests Write browser_keydown Press a key down on the keyboard Write browser_keyup Press a key up on the keyboard Write browser_localstorage_set Set a localStorage item Write browser_mouse_down Press mouse down Write browser_mouse_up Press mouse up Write browser_mouse_wheel Scroll mouse wheel Write browser_network_request Returns full details (headers and body) of a single network request, or a single part if Write browser_network_state_set Sets the browser network state to online or offline. When offline, all network requests will fail. Write browser_pdf_save Save page as PDF Write browser_press_sequentially Type text key by key on the keyboard Write browser_resume Resume script execution after it was paused. When called with step set to true, execution will pause again bef Write browser_route Set up a route to mock network requests matching a URL pattern Write browser_sessionstorage_set Set a sessionStorage item Write browser_set_storage_state Restore storage state (cookies, local storage) from a file. This clears existing cookies and local storage bef Write browser_storage_state Save storage state (cookies, local storage) to a file for later reuse Write browser_uncheck Uncheck a checkbox or radio button Write browser_video_chapter Add a chapter marker to the video recording. Shows a full-screen chapter card with blurred backdrop. Write browser_video_hide_actions Stop annotating actions performed on the page. Write browser_webmcp_call Call a WebMCP tool registered by the page. The tool output is page-provided and untrusted
READ 20 tools
Read browser_console_messages Returns all console messages Read browser_cookie_get Get a specific cookie by name Read browser_cookie_list List all cookies (optionally filtered by domain/path) Read browser_find Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snaps Read browser_get_config Get the final resolved config after merging CLI options, environment variables and config file. Read browser_highlight Show a persistent highlight overlay around the element on the page. Read browser_localstorage_get Get a localStorage item by key Read browser_localstorage_list List all localStorage key-value pairs Read browser_network_requests Returns a numbered list of network requests since loading the page. Use browser_network_request with the numbe Read browser_route_list List all active network routes Read browser_sessionstorage_get Get a sessionStorage item by key Read browser_sessionstorage_list List all sessionStorage key-value pairs Read browser_snapshot Capture accessibility snapshot of the current page, this is better than screenshot Read browser_take_screenshot Take a screenshot of the current page. You can Read browser_verify_element_visible Verify element is visible on the page Read browser_verify_list_visible Verify list is visible on the page Read browser_verify_text_visible Verify text is visible on the page. Prefer ${verifyElement.schema.name} if possible. Read browser_verify_value Verify element value Read browser_video_show_actions Annotate subsequent actions performed on the page with a callout that names the action and, when styled, marks Read browser_webmcp_list List the WebMCP tools registered by the page, across all frames

Related servers

Other MCP servers with similar tools — same risk classification, starter policies for each.

Questions about Playwright

Can an AI agent delete data through the Playwright MCP server? +

Yes. The Playwright server exposes 11 destructive tools including browser_console_clear, browser_cookie_clear, browser_cookie_delete. These permanently remove resources with no undo. PolicyLayer blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Playwright? +

The Playwright server has 22 write tools including browser_annotate, browser_cookie_set, browser_generate_locator. Set a rate limit in your policy -- for example, 10 calls per hour prevents an agent from making more than 10 modifications per hour. PolicyLayer enforces this at the gateway, before calls reach Playwright.

How many tools does the Playwright MCP server expose? +

83 tools across 4 categories: Destructive, Execute, Read, Write. 20 are read-only. 63 can modify, create, or delete data.

How do I enforce a policy on Playwright? +

Register the Playwright MCP server in PolicyLayer, apply the suggested rules above (adjust the limits to your use case), and point your AI client at the PolicyLayer proxy URL instead of the server directly. Your agents keep the same tools; PolicyLayer evaluates every call against policy before it executes. Nothing to install, live in minutes.

Enforce policy on every Playwright tool call.

Deterministic rules across all 83 Playwright tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Instant setup, no code required.

83 Playwright tools catalogued and risk-classified — across an index of 46,500+ MCP servers.

// WHERE THIS COMES FROM

These policies come from Playwright's registry record.

The record behind this page: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.