ReadonlycallCalls a tool registered by the frame and returns its result.
The result is whatever the tool's execute function resolved to. A result
with isError: true succeeds as is; the effect fails when the tool is not
registered or its execute function throws.
ReadonlytoolsReturns the tools currently registered by the frame.
Fails if the browser was launched without WebMCP support.
Tools that a frame registers through the experimental WebMCP browser API.
Gotchas
WebMCP must be enabled when the browser launches. In Chromium, pass
--enable-features=WebMCP; WebKit does not support it.Page.webmcponly covers the main frame, so child frames list their tools through their ownFrame.webmcp.Example
See
CoreWebMCP
Since
0.9.0