Skip to main content
Glama

playwright-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
server-flowGet prompt on how to use this MCP server

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
init-browser

Initialize a browser with a URL

get-full-dom

Get the full DOM of the current page. (Deprecated, use get-context instead)

get-screenshot

Get a screenshot of the current page

execute-code

Execute custom Playwright JS code against the current page

get-context

Get the website context which would be used to write the testcase

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ashish-Bansal/playwright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server