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.
Use page.onToolsAdded() to subscribe to future tool additions, including tools in child frames.
- TypeScript
- Python
- Go
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()
result() for the authoritative final status.
