Standard I/O
Docker
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"-playwright-mcp": {
"args": [
"index.js"
],
"command": "node"
}
}
}(string): Exact target element reference from the page snapshot
(string, optional): Button to click, defaults to left
generated by update-readme.js -->
(boolean, optional): Whether to perform a double click instead of a single click
(string): Exact source element reference from the page snapshot
(boolean, optional): When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.
(array): Array of values to select in the dropdown. This can be a single value or multiple values.
(boolean, optional): Whether to submit entered text (press Enter after)
(string, optional): The text to wait for to disappear
Stop tracing
(string, optional): File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified. Prefer relative file names to stay within the output directory.
(number): Height of the browser window
(string): Human-readable element description
This has been generated via update-readme.js -->
(array, optional): Modifier keys to press
(string, optional): The text to wait for
(string, optional): The text of the prompt in case of a prompt dialog.
(boolean, optional): Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.
(string): Human-readable target element description used to obtain the permission to interact with the element
(number, optional): Tab index, used for close/select. If omitted for close, current tab is closed.
(number): End X coordinate
(number): End Y coordinate
(number): X coordinate
(number): Y coordinate
(string): ACCESSIBLE_NAME of the element. Can be found in the snapshot like this: `- role "{ACCESSIBLE_NAME}"`
(string): Exact target element reference that points to the element
Stop trace recording
of tools generated section -->
(number): Start X coordinate
(number): Start Y coordinate
(array): Items to verify
(string): Value to verify. For checkbox, use "true" or "false".
None