Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(webmcp): expose WebMCP to all languages (#43189)

Pavel Feldman160447983070
diff --git a/docs/src/api/class-frame.md b/docs/src/api/class-frame.md
index c5d79a3152..db24dd5229 100644
--- a/docs/src/api/class-frame.md
+++ b/docs/src/api/class-frame.md
@@ -2421,7 +2421,6 @@ await frame.WaitForURLAsync("**/target.html");
## property: Frame.webmcp
* since: v1.64
-* langs: js
- type: <[WebMCP]>
Tools that the frame registers through the experimental [WebMCP](https://webmachinelearning.github.io/webmcp/) browser API. See [WebMCP] for details.
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md
index 951bae8ccf..1a3d68401a 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -5955,7 +5955,6 @@ Receives the [Worker] object and resolves to truthy value when the waiting shoul
## property: Page.webmcp
* since: v1.64
-* langs: js
- type: <[WebMCP]>
Tools that the main frame registers through the experimental [WebMCP](https://webmachinelearning.github.io/webmcp/) browser API. Shortcut for [`property: Frame.webmcp`] of [`method: Page.mainFrame`], see [WebMCP] for details.
diff --git a/docs/src/api/class-webmcp.md b/docs/src/api/class-webmcp.md
index 4eb55da1b5..37d8e833d4 100644
--- a/docs/src/api/class-webmcp.md
+++ b/docs/src/api/class-webmcp.md
@@ -1,6 +1,5 @@
# class: WebMCP
* since: v1.64
-* langs: js
[WebMCP] exposes the tools that a frame registers through the experimental [WebMCP](https://webmachinelearning.github.io/webmcp/) browser API, `navigator.modelContext`. It lists the tools and calls them.
@@ -46,6 +45,9 @@ Name of the tool, as reported by [`method: WebMCP.tools`].
Input for the tool, matching its `inputSchema`. Defaults to an empty object.
+### option: WebMCP.callTool.timeout = %%-input-timeout-%%
+* since: v1.64
+
### option: WebMCP.callTool.timeout = %%-input-timeout-js-%%
* since: v1.64
@@ -65,5 +67,8 @@ Returns the tools currently registered by the frame. Throws if the browser was l
[`property: Page.webmcp`] covers the main frame only, child frames list their tools through their own [`property: Frame.webmcp`].
+### option: WebMCP.tools.timeout = %%-input-timeout-%%
+* since: v1.64
+
### option: WebMCP.tools.timeout = %%-input-timeout-js-%%
* since: v1.64