@playwright/mcp 0.0.42 → 0.0.43-alpha-2025-10-18

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 +55 -3
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -692,7 +692,7 @@ http.createServer(async (req, res) => {
692
692
  - Description: Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
693
693
  - Parameters:
694
694
  - `type` (string, optional): Image format for the screenshot. Default is png.
695
- - `filename` (string, optional): File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified.
695
+ - `filename` (string, optional): File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified. Prefer relative file names to stay within the output directory.
696
696
  - `element` (string, optional): Human-readable element description used to obtain permission to screenshot the element. If not provided, the screenshot will be taken of viewport. If element is provided, ref must be provided too.
697
697
  - `ref` (string, optional): Exact target element reference from the page snapshot. If not provided, the screenshot will be taken of viewport. If ref is provided, element must be provided too.
698
698
  - `fullPage` (boolean, optional): When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.
@@ -801,13 +801,65 @@ http.createServer(async (req, res) => {
801
801
  - Title: Save as PDF
802
802
  - Description: Save page as PDF
803
803
  - Parameters:
804
- - `filename` (string, optional): File name to save the pdf to. Defaults to `page-{timestamp}.pdf` if not specified.
804
+ - `filename` (string, optional): File name to save the pdf to. Defaults to `page-{timestamp}.pdf` if not specified. Prefer relative file names to stay within the output directory.
805
805
  - Read-only: **true**
806
806
 
807
807
  </details>
808
808
 
809
809
  <details>
810
- <summary><b>Verify (opt-in via --caps=verify)</b></summary>
810
+ <summary><b>Test assertions (opt-in via --caps=testing)</b></summary>
811
+
812
+ <!-- NOTE: This has been generated via update-readme.js -->
813
+
814
+ - **browser_generate_locator**
815
+ - Title: Create locator for element
816
+ - Description: Generate locator for the given element to use in tests
817
+ - Parameters:
818
+ - `element` (string): Human-readable element description used to obtain permission to interact with the element
819
+ - `ref` (string): Exact target element reference from the page snapshot
820
+ - Read-only: **true**
821
+
822
+ <!-- NOTE: This has been generated via update-readme.js -->
823
+
824
+ - **browser_verify_element_visible**
825
+ - Title: Verify element visible
826
+ - Description: Verify element is visible on the page
827
+ - Parameters:
828
+ - `role` (string): ROLE of the element. Can be found in the snapshot like this: `- {ROLE} "Accessible Name":`
829
+ - `accessibleName` (string): ACCESSIBLE_NAME of the element. Can be found in the snapshot like this: `- role "{ACCESSIBLE_NAME}"`
830
+ - Read-only: **false**
831
+
832
+ <!-- NOTE: This has been generated via update-readme.js -->
833
+
834
+ - **browser_verify_list_visible**
835
+ - Title: Verify list visible
836
+ - Description: Verify list is visible on the page
837
+ - Parameters:
838
+ - `element` (string): Human-readable list description
839
+ - `ref` (string): Exact target element reference that points to the list
840
+ - `items` (array): Items to verify
841
+ - Read-only: **false**
842
+
843
+ <!-- NOTE: This has been generated via update-readme.js -->
844
+
845
+ - **browser_verify_text_visible**
846
+ - Title: Verify text visible
847
+ - Description: Verify text is visible on the page. Prefer browser_verify_element_visible if possible.
848
+ - Parameters:
849
+ - `text` (string): TEXT to verify. Can be found in the snapshot like this: `- role "Accessible Name": {TEXT}` or like this: `- text: {TEXT}`
850
+ - Read-only: **false**
851
+
852
+ <!-- NOTE: This has been generated via update-readme.js -->
853
+
854
+ - **browser_verify_value**
855
+ - Title: Verify value
856
+ - Description: Verify element value
857
+ - Parameters:
858
+ - `type` (string): Type of the element
859
+ - `element` (string): Human-readable element description
860
+ - `ref` (string): Exact target element reference that points to the element
861
+ - `value` (string): Value to verify. For checkbox, use "true" or "false".
862
+ - Read-only: **false**
811
863
 
812
864
  </details>
813
865
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/mcp",
3
- "version": "0.0.42",
3
+ "version": "0.0.43-alpha-2025-10-18",
4
4
  "description": "Playwright Tools for MCP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,15 +35,15 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "playwright": "1.57.0-alpha-2025-10-09",
39
- "playwright-core": "1.57.0-alpha-2025-10-09"
38
+ "playwright": "1.57.0-alpha-2025-10-16",
39
+ "playwright-core": "1.57.0-alpha-2025-10-16"
40
40
  },
41
41
  "bin": {
42
42
  "mcp-server-playwright": "cli.js"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@modelcontextprotocol/sdk": "^1.17.5",
46
- "@playwright/test": "1.57.0-alpha-2025-10-09",
46
+ "@playwright/test": "1.57.0-alpha-2025-10-16",
47
47
  "@types/node": "^24.3.0",
48
48
  "zod-to-json-schema": "^3.24.6"
49
49
  }