Playwright

Download 0
Last updated Sep 5, 2026

Commands

Clicks one element of an open browser session and returns the screen the click led to.

Closes a browser session and releases the browser it held on the Playwright MCP server. Call this when the task is done: an open session counts against the session ceiling until it is closed or reaped for being idle. Closing a session that no longer exists reports is_closed=false rather than failing.

Navigates an open browser session to a URL and returns the page it landed on.

Moves the pointer onto one element of an open browser session and returns the screen afterwards.

Types text into one field of an open browser session and returns the screen afterwards.

Fills one sign-in field of an open browser session with a value the session's credential profile holds, and returns the screen afterwards.

Reads the current screen of an open browser session and returns the accessibility snapshot, in which every element carries a ref such as e40. Those refs are the handles the action commands take, and every reading reassigns them, so never reuse a ref from an earlier reading.

Opens a browser on the given site, parks it on the landing page, and returns a session_id the other playwright-* commands take.

Presses one keyboard key in an open browser session and returns the screen afterwards.

Resizes the browser window of an open session and returns the screen as it looks at that size.

Captures the current screen of an open browser session as a PNG in the file store and returns its URLs.

Chooses an option in a dropdown of an open browser session and returns the screen afterwards.

Lists your own open browser sessions, one row each. Useful for recovering a session id you no longer have, and for finding sessions worth closing before opening another. Other users' sessions are never listed.