@playwright/mcp 0.0.51-alpha-2025-12-11 → 0.0.52-alpha-2025-12-12

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +6 -7
package/README.md CHANGED
@@ -900,7 +900,7 @@ http.createServer(async (req, res) => {
900
900
  - Title: Run Playwright code
901
901
  - Description: Run Playwright code snippet
902
902
  - Parameters:
903
- - `code` (string): Playwright code snippet to run. The snippet should access the `page` object to interact with the page. Can make multiple statements. For example: `await page.getByRole('button', { name: 'Submit' }).click();`
903
+ - `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(); }`
904
904
  - Read-only: **false**
905
905
 
906
906
  <!-- NOTE: This has been generated via update-readme.js -->
@@ -919,7 +919,8 @@ http.createServer(async (req, res) => {
919
919
  - **browser_snapshot**
920
920
  - Title: Page snapshot
921
921
  - Description: Capture accessibility snapshot of the current page, this is better than screenshot
922
- - Parameters: None
922
+ - Parameters:
923
+ - `filename` (string, optional): Save snapshot to markdown file instead of returning it in the response.
923
924
  - Read-only: **true**
924
925
 
925
926
  <!-- NOTE: This has been generated via update-readme.js -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/mcp",
3
- "version": "0.0.51-alpha-2025-12-11",
3
+ "version": "0.0.52-alpha-2025-12-12",
4
4
  "description": "Playwright Tools for MCP",
5
5
  "mcpName": "com.microsoft/playwright-mcp",
6
6
  "repository": {
@@ -38,16 +38,15 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "playwright": "1.58.0-alpha-2025-12-05",
42
- "playwright-core": "1.58.0-alpha-2025-12-05"
41
+ "playwright": "1.58.0-alpha-2025-12-11",
42
+ "playwright-core": "1.58.0-alpha-2025-12-11"
43
43
  },
44
44
  "bin": {
45
45
  "mcp-server-playwright": "cli.js"
46
46
  },
47
47
  "devDependencies": {
48
- "@modelcontextprotocol/sdk": "^1.17.5",
49
- "@playwright/test": "1.58.0-alpha-2025-12-05",
50
- "@types/node": "^24.3.0",
51
- "zod-to-json-schema": "^3.24.6"
48
+ "@modelcontextprotocol/sdk": "^1.24.0",
49
+ "@playwright/test": "1.58.0-alpha-2025-12-11",
50
+ "@types/node": "^24.3.0"
52
51
  }
53
52
  }