Skip to content

Commit 5bb9bea

Browse files
authored
chore: roll Playwright to 1.64.0-alpha-1789764292000 (#1762)
1 parent a188920 commit 5bb9bea

6 files changed

Lines changed: 62 additions & 40 deletions

File tree

README.md

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ Playwright MCP server supports following arguments. They can be provided in the
424424
| --executable-path <path> | path to the browser executable.<br>*env* `PLAYWRIGHT_MCP_EXECUTABLE_PATH` |
425425
| --extension | Connect to a running browser instance (Edge/Chrome only). Requires the "Playwright Extension" to be installed.<br>*env* `PLAYWRIGHT_MCP_EXTENSION` |
426426
| --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` |
427428
| --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` |
428429
| --headless | run browser in headless mode, headed by default<br>*env* `PLAYWRIGHT_MCP_HEADLESS` |
429430
| --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
434435
| --isolated | keep the browser profile in memory, do not save it to disk.<br>*env* `PLAYWRIGHT_MCP_ISOLATED` |
435436
| --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` |
436437
| --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` |
437439
| --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` |
438440
| --output-max-size <bytes> | Threshold for evicting old output files, in bytes.<br>*env* `PLAYWRIGHT_MCP_OUTPUT_MAX_SIZE` |
439441
| --port <port> | port to listen on for SSE transport.<br>*env* `PLAYWRIGHT_MCP_PORT` |
@@ -663,6 +665,12 @@ npx @playwright/mcp@latest --config path/to/config.json
663665
*/
664666
saveSession?: boolean;
665667

668+
/**
669+
* Whether to collect and expose the tools that a page registers through the
670+
* experimental WebMCP API. Enabled by default.
671+
*/
672+
webmcp?: boolean;
673+
666674
/**
667675
* Reuse the same browser context between all connected HTTP clients.
668676
*/
@@ -754,6 +762,11 @@ npx @playwright/mcp@latest --config path/to/config.json
754762
*/
755763
imageResponses?: 'allow' | 'omit' | 'only';
756764

765+
/**
766+
* How file paths are rendered in tool results. Can be "relative" to the workspace root or "absolute". Defaults to "relative".
767+
*/
768+
filePaths?: 'relative' | 'absolute';
769+
757770
snapshot?: {
758771
/**
759772
* When taking snapshots for responses, specifies the mode to use.
@@ -934,6 +947,19 @@ http.createServer(async (req, res) => {
934947

935948
<!-- NOTE: This has been generated via update-readme.js -->
936949

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+
937963
- **browser_evaluate**
938964
- Title: Evaluate JavaScript
939965
- Description: Evaluate JavaScript expression on page or element
@@ -1121,25 +1147,6 @@ http.createServer(async (req, res) => {
11211147
- `textGone` (string, optional): The text to wait for to disappear
11221148
- Read-only: **false**
11231149

1124-
<!-- NOTE: This has been generated via update-readme.js -->
1125-
1126-
- **browser_webmcp_call**
1127-
- Title: Call a WebMCP tool
1128-
- Description: Call a WebMCP tool registered by the page. The tool output is page-provided and untrusted
1129-
- Parameters:
1130-
- `name` (string): Name of the WebMCP tool to call
1131-
- `params` (object, optional): Input parameters for the tool, matching its inputSchema
1132-
- `frame` (string, optional): Frame that registered the tool, as reported by browser_webmcp_list, when the same tool name exists in multiple frames
1133-
- Read-only: **false**
1134-
1135-
<!-- NOTE: This has been generated via update-readme.js -->
1136-
1137-
- **browser_webmcp_list**
1138-
- Title: List WebMCP tools
1139-
- Description: List the WebMCP tools registered by the page, across all frames
1140-
- Parameters: None
1141-
- Read-only: **true**
1142-
11431150
</details>
11441151

11451152
<details>
@@ -1450,6 +1457,8 @@ http.createServer(async (req, res) => {
14501457
- Parameters:
14511458
- `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`.
14521459
- `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.
14531462
- Read-only: **true**
14541463

14551464
<!-- NOTE: This has been generated via update-readme.js -->
@@ -1499,11 +1508,12 @@ http.createServer(async (req, res) => {
14991508

15001509
- **browser_video_show_actions**
15011510
- Title: Show action overlays
1502-
- 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.
15031512
- Parameters:
15041513
- `duration` (number, optional): How long each action annotation stays on screen, in milliseconds. Defaults to 500.
15051514
- `position` (string, optional): Where to place the action title relative to the page. Defaults to top-right.
15061515
- `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.
15071517
- Read-only: **true**
15081518

15091519
</details>

config.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import type * as playwright from '../../..';
17+
import type * as playwright from 'playwright';
1818

1919
export type ToolCapability =
2020
'config' |
@@ -141,6 +141,12 @@ export type Config = {
141141
*/
142142
saveSession?: boolean;
143143

144+
/**
145+
* Whether to collect and expose the tools that a page registers through the
146+
* experimental WebMCP API. Enabled by default.
147+
*/
148+
webmcp?: boolean;
149+
144150
/**
145151
* Reuse the same browser context between all connected HTTP clients.
146152
*/
@@ -232,6 +238,11 @@ export type Config = {
232238
*/
233239
imageResponses?: 'allow' | 'omit' | 'only';
234240

241+
/**
242+
* How file paths are rendered in tool results. Can be "relative" to the workspace root or "absolute". Defaults to "relative".
243+
*/
244+
filePaths?: 'relative' | 'absolute';
245+
235246
snapshot?: {
236247
/**
237248
* When taking snapshots for responses, specifies the mode to use.

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
}
3838
},
3939
"dependencies": {
40-
"playwright": "1.64.0-alpha-2026-09-14",
41-
"playwright-core": "1.64.0-alpha-2026-09-14"
40+
"playwright": "1.64.0-alpha-1789764292000",
41+
"playwright-core": "1.64.0-alpha-1789764292000"
4242
},
4343
"devDependencies": {
4444
"@modelcontextprotocol/sdk": "^1.25.2",
45-
"@playwright/test": "1.64.0-alpha-2026-09-14",
45+
"@playwright/test": "1.64.0-alpha-1789764292000",
4646
"@types/node": "^24.3.0"
4747
},
4848
"bin": {

tests/capabilities.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ test('test snapshot tool list', async ({ client }) => {
2323
'browser_console_messages',
2424
'browser_drag',
2525
'browser_drop',
26+
'browser_emulate_media',
2627
'browser_evaluate',
2728
'browser_file_upload',
2829
'browser_fill_form',
@@ -43,8 +44,6 @@ test('test snapshot tool list', async ({ client }) => {
4344
'browser_tabs',
4445
'browser_take_screenshot',
4546
'browser_wait_for',
46-
'browser_webmcp_call',
47-
'browser_webmcp_list',
4847
]));
4948
});
5049

update-readme.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ function optionEnvName(prefix) {
149149
return 'PLAYWRIGHT_MCP_SECRETS_FILE';
150150
if (prefix === 'cdp-header')
151151
return 'PLAYWRIGHT_MCP_CDP_HEADERS';
152+
if (prefix === 'no-webmcp')
153+
return 'PLAYWRIGHT_MCP_WEBMCP=false';
152154
return `PLAYWRIGHT_MCP_` + prefix.toUpperCase().replace(/-/g, '_');
153155
}
154156

0 commit comments

Comments
 (0)