Skip to main content
page.tools() returns page-bound WebMCPTool objects. Invoking a tool returns a WebMCPInvocation, which can wait for Chrome’s terminal response or request cancellation. See the Page reference for tool discovery options.

WebMCPTool

Properties

invoke()

options.input is a JSON-compatible object and defaults to {}. The helper supplies its own page, frame, and tool name.

WebMCPInvocation

Properties

result()

options.timeout is an optional non-negative timeout in milliseconds. A successful terminal response is cached on the invocation; timeout and transport failures are not cached and can be retried.

cancel()

Requests cancellation from Chrome. It does not synthesize or overwrite a terminal response; call result() for the authoritative final status.