chore: roll 1.59.0-alpha-1774622285000

This commit is contained in:
Yury Semikhatsky
2026-03-27 17:57:48 -07:00
parent 9521308275
commit fd1ef543cb
5 changed files with 76 additions and 62 deletions

View File

@@ -390,7 +390,7 @@ Playwright MCP server supports following arguments. They can be provided in the
| --save-session | Whether to save the Playwright MCP session into the output directory.<br>*env* `PLAYWRIGHT_MCP_SAVE_SESSION` |
| --secrets <path> | path to a file containing secrets in the dotenv format<br>*env* `PLAYWRIGHT_MCP_SECRETS` |
| --shared-browser-context | reuse the same browser context between all connected HTTP clients.<br>*env* `PLAYWRIGHT_MCP_SHARED_BROWSER_CONTEXT` |
| --snapshot-mode <mode> | when taking snapshots for responses, specifies the mode to use. Can be "incremental", "full", or "none". Default is incremental.<br>*env* `PLAYWRIGHT_MCP_SNAPSHOT_MODE` |
| --snapshot-mode <mode> | when taking snapshots for responses, specifies the mode to use. Can be "full" or "none". Default is "full".<br>*env* `PLAYWRIGHT_MCP_SNAPSHOT_MODE` |
| --storage-state <path> | path to the storage state file for isolated sessions.<br>*env* `PLAYWRIGHT_MCP_STORAGE_STATE` |
| --test-id-attribute <attribute> | specify the attribute to use for test ids, defaults to "data-testid"<br>*env* `PLAYWRIGHT_MCP_TEST_ID_ATTRIBUTE` |
| --timeout-action <timeout> | specify action timeout in milliseconds, defaults to 5000ms<br>*env* `PLAYWRIGHT_MCP_TIMEOUT_ACTION` |
@@ -604,9 +604,9 @@ npx @playwright/mcp@latest --config path/to/config.json
sharedBrowserContext?: boolean;
/**
* Secrets are used to prevent LLM from getting sensitive data while
* automating scenarios such as authentication.
* Prefer the browser.contextOptions.storageState over secrets file as a more secure alternative.
* Secrets are used to replace matching plain text in the tool responses to prevent the LLM
* from accidentally getting sensitive data. It is a convenience and not a security feature,
* make sure to always examine information coming in and from the tool on the client.
*/
secrets?: Record<string, string>;
@@ -615,11 +615,6 @@ npx @playwright/mcp@latest --config path/to/config.json
*/
outputDir?: string;
/**
* Whether to save snapshots, console messages, network logs and other session logs to a file or to the standard output. Defaults to "stdout".
*/
outputMode?: 'file' | 'stdout';
console?: {
/**
* The level of console messages to return. Each level includes the messages of more severe levels. Defaults to "info".
@@ -678,12 +673,14 @@ npx @playwright/mcp@latest --config path/to/config.json
/**
* When taking snapshots for responses, specifies the mode to use.
*/
mode?: 'incremental' | 'full' | 'none';
mode?: 'full' | 'none';
};
/**
* Whether to allow file uploads from anywhere on the file system.
* By default (false), file uploads are restricted to paths within the MCP roots only.
* allowUnrestrictedFileAccess acts as a guardrail to prevent the LLM from accidentally
* wandering outside its intended workspace. It is a convenience defense to catch unintended
* file access, not a secure boundary; a deliberate attempt to reach other directories can be
* easily worked around, so always rely on client-level permissions for true security.
*/
allowUnrestrictedFileAccess?: boolean;
@@ -845,6 +842,7 @@ http.createServer(async (req, res) => {
- `element` (string, optional): Human-readable element description used to obtain permission to interact with the element
- `ref` (string, optional): Exact target element reference from the page snapshot
- `selector` (string, optional): CSS or role selector for the target element, when "ref" is not available.
- `filename` (string, optional): Filename to save the result to. If not provided, result is returned as text.
- Read-only: **false**
<!-- NOTE: This has been generated via update-readme.js -->
@@ -909,7 +907,10 @@ http.createServer(async (req, res) => {
- Title: List network requests
- Description: Returns all network requests since loading the page
- Parameters:
- `includeStatic` (boolean): Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.
- `static` (boolean): Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.
- `requestBody` (boolean): Whether to include request body. Defaults to false.
- `requestHeaders` (boolean): Whether to include request headers. Defaults to false.
- `filter` (string, optional): Only return requests whose URL matches this regexp (e.g. "/api/.*user").
- `filename` (string, optional): Filename to save the network requests to. If not provided, requests are returned as text.
- Read-only: **true**
@@ -938,7 +939,8 @@ http.createServer(async (req, res) => {
- Title: Run Playwright code
- Description: Run Playwright code snippet
- Parameters:
- `code` (string): A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: `async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }`
- `code` (string, optional): A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: `async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }`
- `filename` (string, optional): Load code from the specified file. If both code and filename are provided, code will be ignored.
- Read-only: **false**
<!-- NOTE: This has been generated via update-readme.js -->
@@ -961,6 +963,7 @@ http.createServer(async (req, res) => {
- Parameters:
- `filename` (string, optional): Save snapshot to markdown file instead of returning it in the response.
- `selector` (string, optional): Element selector of the root element to capture a partial snapshot instead of the whole page
- `depth` (number, optional): Limit the depth of the snapshot tree
- Read-only: **true**
<!-- NOTE: This has been generated via update-readme.js -->
@@ -1250,6 +1253,16 @@ http.createServer(async (req, res) => {
<!-- NOTE: This has been generated via update-readme.js -->
- **browser_resume**
- Title: Resume paused script execution
- Description: Resume script execution after it was paused. When called with step set to true, execution will pause again before the next action.
- Parameters:
- `step` (boolean, optional): When true, execution will pause again before the next action, allowing step-by-step debugging.
- `location` (string, optional): Pause execution at a specific <file>:<line>, e.g. "example.spec.ts:42".
- Read-only: **false**
<!-- NOTE: This has been generated via update-readme.js -->
- **browser_start_tracing**
- Title: Start tracing
- Description: Start trace recording
@@ -1282,6 +1295,17 @@ http.createServer(async (req, res) => {
- `filename` (string, optional): Filename to save the video
- Read-only: **true**
<!-- NOTE: This has been generated via update-readme.js -->
- **browser_video_chapter**
- Title: Video chapter
- Description: Add a chapter marker to the video recording. Shows a full-screen chapter card with blurred backdrop.
- Parameters:
- `title` (string): Chapter title
- `description` (string, optional): Chapter description
- `duration` (number, optional): Duration in milliseconds to show the chapter card
- Read-only: **true**
</details>
<details>