@playwright/mcp 0.0.75-alpha-2026-05-28 → 0.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -2
- package/config.d.ts +11 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -412,6 +412,7 @@ Playwright MCP server supports following arguments. They can be provided in the
|
|
|
412
412
|
| --image-responses <mode> | whether to send image responses to the client. Can be "allow" or "omit", Defaults to "allow".<br>*env* `PLAYWRIGHT_MCP_IMAGE_RESPONSES` |
|
|
413
413
|
| --no-sandbox | disable the sandbox for all process types that are normally sandboxed.<br>*env* `PLAYWRIGHT_MCP_NO_SANDBOX` |
|
|
414
414
|
| --output-dir <path> | path to the directory for output files.<br>*env* `PLAYWRIGHT_MCP_OUTPUT_DIR` |
|
|
415
|
+
| --output-max-size <bytes> | Threshold for evicting old output files, in bytes.<br>*env* `PLAYWRIGHT_MCP_OUTPUT_MAX_SIZE` |
|
|
415
416
|
| --output-mode <mode> | whether to save snapshots, console messages, network logs to a file or to the standard output. Can be "file" or "stdout". Default is "stdout".<br>*env* `PLAYWRIGHT_MCP_OUTPUT_MODE` |
|
|
416
417
|
| --port <port> | port to listen on for SSE transport.<br>*env* `PLAYWRIGHT_MCP_PORT` |
|
|
417
418
|
| --proxy-bypass <bypass> | comma-separated domains to bypass proxy, for example ".com,chromium.org,.domain.com"<br>*env* `PLAYWRIGHT_MCP_PROXY_BYPASS` |
|
|
@@ -578,9 +579,13 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|
|
578
579
|
cdpTimeout?: number;
|
|
579
580
|
|
|
580
581
|
/**
|
|
581
|
-
* Remote endpoint to connect to an existing Playwright server.
|
|
582
|
+
* Remote endpoint to connect to an existing Playwright server. May be a
|
|
583
|
+
* WebSocket URL string, or a [ConnectOptions] object that mirrors the
|
|
584
|
+
* `connectOptions` shape used by the test runner. When passed as an object,
|
|
585
|
+
* `exposeNetwork`, `headers`, `slowMo`, and `timeout` are forwarded to the
|
|
586
|
+
* underlying connect call.
|
|
582
587
|
*/
|
|
583
|
-
remoteEndpoint?: string;
|
|
588
|
+
remoteEndpoint?: string | playwright.ConnectOptions & { endpoint: string };
|
|
584
589
|
|
|
585
590
|
/**
|
|
586
591
|
* Paths to TypeScript files to add as initialization scripts for Playwright page.
|
|
@@ -650,6 +655,11 @@ npx @playwright/mcp@latest --config path/to/config.json
|
|
|
650
655
|
*/
|
|
651
656
|
outputDir?: string;
|
|
652
657
|
|
|
658
|
+
/**
|
|
659
|
+
* Threshold for evicting old output files, in bytes.
|
|
660
|
+
*/
|
|
661
|
+
outputMaxSize?: number;
|
|
662
|
+
|
|
653
663
|
console?: {
|
|
654
664
|
/**
|
|
655
665
|
* The level of console messages to return. Each level includes the messages of more severe levels. Defaults to "info".
|
|
@@ -1385,6 +1395,25 @@ http.createServer(async (req, res) => {
|
|
|
1385
1395
|
- `duration` (number, optional): Duration in milliseconds to show the chapter card
|
|
1386
1396
|
- Read-only: **true**
|
|
1387
1397
|
|
|
1398
|
+
<!-- NOTE: This has been generated via update-readme.js -->
|
|
1399
|
+
|
|
1400
|
+
- **browser_video_hide_actions**
|
|
1401
|
+
- Title: Hide action overlays
|
|
1402
|
+
- Description: Stop annotating actions performed on the page.
|
|
1403
|
+
- Parameters: None
|
|
1404
|
+
- Read-only: **true**
|
|
1405
|
+
|
|
1406
|
+
<!-- NOTE: This has been generated via update-readme.js -->
|
|
1407
|
+
|
|
1408
|
+
- **browser_video_show_actions**
|
|
1409
|
+
- Title: Show action overlays
|
|
1410
|
+
- 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.
|
|
1411
|
+
- Parameters:
|
|
1412
|
+
- `duration` (number, optional): How long each action annotation stays on screen, in milliseconds. Defaults to 500.
|
|
1413
|
+
- `position` (string, optional): Where to place the action title relative to the page. Defaults to top-right.
|
|
1414
|
+
- `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.
|
|
1415
|
+
- Read-only: **true**
|
|
1416
|
+
|
|
1388
1417
|
</details>
|
|
1389
1418
|
|
|
1390
1419
|
<details>
|
package/config.d.ts
CHANGED
|
@@ -82,9 +82,13 @@ export type Config = {
|
|
|
82
82
|
cdpTimeout?: number;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* Remote endpoint to connect to an existing Playwright server.
|
|
85
|
+
* Remote endpoint to connect to an existing Playwright server. May be a
|
|
86
|
+
* WebSocket URL string, or a [ConnectOptions] object that mirrors the
|
|
87
|
+
* `connectOptions` shape used by the test runner. When passed as an object,
|
|
88
|
+
* `exposeNetwork`, `headers`, `slowMo`, and `timeout` are forwarded to the
|
|
89
|
+
* underlying connect call.
|
|
86
90
|
*/
|
|
87
|
-
remoteEndpoint?: string;
|
|
91
|
+
remoteEndpoint?: string | playwright.ConnectOptions & { endpoint: string };
|
|
88
92
|
|
|
89
93
|
/**
|
|
90
94
|
* Paths to TypeScript files to add as initialization scripts for Playwright page.
|
|
@@ -154,6 +158,11 @@ export type Config = {
|
|
|
154
158
|
*/
|
|
155
159
|
outputDir?: string;
|
|
156
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Threshold for evicting old output files, in bytes.
|
|
163
|
+
*/
|
|
164
|
+
outputMaxSize?: number;
|
|
165
|
+
|
|
157
166
|
console?: {
|
|
158
167
|
/**
|
|
159
168
|
* The level of console messages to return. Each level includes the messages of more severe levels. Defaults to "info".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwright/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.76",
|
|
4
4
|
"description": "Playwright Tools for MCP",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"playwright": "1.61.0-alpha-
|
|
41
|
-
"playwright-core": "1.61.0-alpha-
|
|
40
|
+
"playwright": "1.61.0-alpha-1781023400000",
|
|
41
|
+
"playwright-core": "1.61.0-alpha-1781023400000"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
45
|
-
"@playwright/test": "1.61.0-alpha-
|
|
45
|
+
"@playwright/test": "1.61.0-alpha-1781023400000",
|
|
46
46
|
"@types/node": "^24.3.0"
|
|
47
47
|
},
|
|
48
48
|
"bin": {
|