You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-20Lines changed: 30 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,6 +424,7 @@ Playwright MCP server supports following arguments. They can be provided in the
424
424
| --executable-path <path> | path to the browser executable.<br>*env*`PLAYWRIGHT_MCP_EXECUTABLE_PATH`|
425
425
| --extension | Connect to a running browser instance (Edge/Chrome only). Requires the "Playwright Extension" to be installed.<br>*env*`PLAYWRIGHT_MCP_EXTENSION`|
426
426
| --endpoint <endpoint> | Bound browser endpoint to connect to.<br>*env*`PLAYWRIGHT_MCP_ENDPOINT`|
427
+
| --file-paths <mode> | how file paths are rendered in tool results, "relative" to the workspace root or "absolute". Default is "relative".<br>*env*`PLAYWRIGHT_MCP_FILE_PATHS`|
427
428
| --grant-permissions <permissions...> | List of permissions to grant to the browser context, for example "geolocation", "clipboard-read", "clipboard-write".<br>*env*`PLAYWRIGHT_MCP_GRANT_PERMISSIONS`|
428
429
| --headless | run browser in headless mode, headed by default<br>*env*`PLAYWRIGHT_MCP_HEADLESS`|
429
430
| --host <host> | host to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces.<br>*env*`PLAYWRIGHT_MCP_HOST`|
@@ -434,6 +435,7 @@ Playwright MCP server supports following arguments. They can be provided in the
434
435
| --isolated | keep the browser profile in memory, do not save it to disk.<br>*env*`PLAYWRIGHT_MCP_ISOLATED`|
435
436
| --image-responses <mode> | whether to send image responses to the client. Can be "allow", "omit" or "only". With "only", a response that carries an image consists of the image parts alone, without the text part. Defaults to "allow".<br>*env*`PLAYWRIGHT_MCP_IMAGE_RESPONSES`|
436
437
| --no-sandbox | disable the sandbox for all process types that are normally sandboxed.<br>*env*`PLAYWRIGHT_MCP_NO_SANDBOX`|
438
+
| --no-webmcp | do not collect or expose the tools that a page registers through the WebMCP API.<br>*env*`PLAYWRIGHT_MCP_WEBMCP=false`|
437
439
| --output-dir <path> | path to the directory for automatically named output files, for example a screenshot taken without an explicit file name. Files with an explicit name are resolved against the workspace root instead and are not affected by this option.<br>*env*`PLAYWRIGHT_MCP_OUTPUT_DIR`|
438
440
| --output-max-size <bytes> | Threshold for evicting old output files, in bytes.<br>*env*`PLAYWRIGHT_MCP_OUTPUT_MAX_SIZE`|
439
441
| --port <port> | port to listen on for SSE transport.<br>*env*`PLAYWRIGHT_MCP_PORT`|
<!-- NOTE: This has been generated via update-readme.js -->
936
949
950
+
-**browser_emulate_media**
951
+
- Title: Emulate media features
952
+
- Description: Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.
953
+
- Parameters:
954
+
-`colorScheme` (optional): Emulates the prefers-color-scheme media feature
955
+
-`reducedMotion` (optional): Emulates the prefers-reduced-motion media feature
956
+
-`forcedColors` (optional): Emulates the forced-colors media feature
957
+
-`contrast` (optional): Emulates the prefers-contrast media feature
958
+
-`media` (optional): Changes the CSS media type of the page
959
+
- Read-only: **false**
960
+
961
+
<!-- NOTE: This has been generated via update-readme.js -->
962
+
937
963
-**browser_evaluate**
938
964
- Title: Evaluate JavaScript
939
965
- Description: Evaluate JavaScript expression on page or element
-`filename` (string, optional): File name to save the video to. Relative file names are resolved against the workspace root. If not specified, the video is saved into the output directory as `video-{timestamp}.webm`.
1452
1459
-`size` (object, optional): Video size
1460
+
-`fps` (number, optional): Video frame rate in frames per second, defaults to 25
1461
+
-`cursor` (boolean, optional): Render an animated mouse cursor that travels to each action point. Paces actions by 800ms so that the cursor has time to travel.
1453
1462
- Read-only: **true**
1454
1463
1455
1464
<!-- NOTE: This has been generated via update-readme.js -->
- Description: Annotate subsequent actions performed on the page with a callout that names the action and highlights the target element. Useful while video recording or screencasting.
1511
+
- Description: Annotate subsequent actions performed on the page with a callout that names the action and, when styled, marks the action point and highlights the target element. Useful while video recording or screencasting.
1503
1512
- Parameters:
1504
1513
-`duration` (number, optional): How long each action annotation stays on screen, in milliseconds. Defaults to 500.
1505
1514
-`position` (string, optional): Where to place the action title relative to the page. Defaults to top-right.
1506
1515
-`cursor` (string, optional): Cursor decoration for pointer actions. "pointer" (default) animates a mouse pointer from the previous action point to the next one; "none" disables the cursor decoration.
1516
+
-`style` (object, optional): Styles of the action decorations.
0 commit comments