Playwright MCP

Microsoft CorporationProductivityUpdated

About this MCP tool

Playwright MCP is a browser automation platform that enables large language models (LLMs) to interact with web pages through structured accessibility snapshots.

  • Browser controls: Open, close, resize and navigate pages, manage tabs and handle dialogs
  • Interaction and input: Click, hover, drag, fill forms, enter text, select options, and upload or drop files
  • Evaluation and scripts: Evaluate JavaScript expressions, run unsafe code snippets and adjust media settings
  • Content retrieval: Capture screenshots and accessibility snapshots, search page content and monitor network requests
  • Event handling: Wait for specific text, elements or timed events to synchronize operations

Built-in tools9

browser_close

Close the page

browser_resize

Resize the browser window

browser_console_messages

Returns all console messages

browser_handle_dialog

Handle a dialog

browser_emulate_media

Emulate CSS media features for the page, for example switch between the light and dark color schemes

browser_evaluate

Evaluate JavaScript expression on page or element

browser_drop

Drop files or MIME-typed data onto an element, as if dragged from outside the page

browser_find

Search the accessibility snapshot of the current page for text or a regular expression

browser_fill_form

Fill multiple form fields

Prompts2

web_search_help

Get help with web search using Exa

browser_emulate_media

Emulate CSS media features for the page, for example switch between the light and dark color schemes

Resources1

NameMIME typeURLDescription
tools_listtools_listexa://tools/listList of available Exa tools and their descriptions