In short.
WebMCP Gen is a skill for developers building callable website tools for AI assistants, but they must write the site logic and use a browser with WebMCP testing support. Its scripts scaffold a manifest, generate webmcp.init.js and check registration and one fixture invocation per tool. The pinned Stagehand dependency requires newer Node versions than the documented Node 18+ minimum. Validation checks completion and certain failure signals without asserting that returned data is correct. The resource was not executed; browser compatibility, reliability, performance and total operating cost remain unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to skills/webmcp-gen at revision 6811ca31163332d9d60309cff48e77f09de37a17: SKILL.md, .gitignore, package.json, pnpm-lock.yaml, scripts/scaffold.mjs, scripts/compile.mjs, scripts/generate-stagehand-example.mjs, scripts/validate.mjs and LICENSE.txt. The adjacent MIT notice is included; no parent-directory notice is supplied. Dependency implementations, the browse CLI implementation, browser builds, target websites and generated artifacts are outside the available material. Nothing was executed, so installation, registration, invocation, correctness, performance and operating costs are unverified.
The overview
Resource and source
WebMCP Gen is an instruction-based skill with supporting JavaScript scripts in Browserbase's skills repository. Its purpose is to author website-specific WebMCP tools: named operations that can be registered inside a browser page and invoked through Stagehand.
The original source is [https://github.com/browserbase/skills/tree/main/skills/webmcp-gen]. The package metadata identifies webmcp-gen-skill version 0.1.0 and marks it private. The documented workflow uses the files from the skill directory.
Practical fit
The resource offers useful structure for developers who want explicit website operations with named inputs and inspectable implementations. It supplies the registration and invocation plumbing while leaving page exploration and implementation authoring to the developer or coding assistant.
Its browser validator provides a basic integration check. It does not establish that an operation retrieved the right information or achieved its intended business outcome. No execution results establish that this captured version works with a particular browser build or website.
Who it suits
The clearest audience is developers comfortable with terminal commands, JSON and browser JavaScript, including developers working with a coding assistant. Authoring a useful tool requires understanding the target page's DOM, which is the browser's structured representation of its content, or its same-origin network interfaces.
Beginners can start with the bundled page-context scaffold, but writing reliable selectors and handling missing elements still requires programming knowledge. The files do not establish compatibility with particular assistant hosts or provide a host-specific installation procedure.
What it provides
The scripts create manifest.json, assemble webmcp.init.js, generate a TypeScript Stagehand example and write validation results to eval.json and eval-report.md. A manifest can declare multiple tools, each with a name, description, input schema, JavaScript implementation and fixture input.
The compiler accepts implementation kinds named dom, same_origin_fetch and hybrid. These labels do not select separate execution engines: every implementation body is inserted into an asynchronous browser callback. Tool names must contain 1–80 letters, numbers, underscores or hyphens.
The validator looks for every declared tool, invokes it with its fixture input and records completion status and output. The generated example lists and invokes tools but mainly prints their results.
Using it
Runtime requirements
The instructions name Node 18+, pnpm, Chrome or Chromium with WebMCP testing support, and the browse CLI for page exploration. However, the lockfile gives the pinned Stagehand dependency a stricter Node requirement: version 20.19.0 or later within Node 20.x, or Node 22.12.0 and later. Node 18 does not satisfy that dependency requirement.
The generated example and validator launch Stagehand in LOCAL mode with --enable-features=WebMCPTesting,DevToolsWebMCPSupport. The exact compatible browser version and operating systems are unknown. The files also do not establish whether Stagehand initialization requires additional provider configuration.
How it works
The manifest is the editable source of truth. The compiler inserts implementation.source into an async callback and emits a script that registers tools through navigator.modelContext.registerTool. Implementations run inside the page and can use browser APIs such as document, location and same-origin fetch.
Registration runs only in the top frame. The script attempts to unregister an existing tool of the same name before registering its replacement. If navigator.modelContext is absent, it records a failure in window.__webmcpGenRegistration; there is no retry loop.
Each invocation races against a 30-second timer and converts caught exceptions into structured failure objects. The wrapper contains no mechanism to cancel the underlying operation when the timer expires.
Setup and authoring
The documented setup starts in skills/webmcp-gen with pnpm install. Page exploration uses browse, installed through npm install -g browse. A compatible Node version should satisfy the stricter Stagehand dependency requirement.
For the documented example, run node scripts/scaffold.mjs with the slug example.com/page-context and --url set to [https://example.com]; this creates artifacts/example.com/page-context/manifest.json. The artifact slug must have exactly two segments separated by one slash. The developer then explores the page and edits the manifest's tool logic.
The remaining commands are node scripts/compile.mjs artifacts/example.com/page-context, node scripts/generate-stagehand-example.mjs artifacts/example.com/page-context, npx tsx artifacts/example.com/page-context/stagehand-example.ts and node scripts/validate.mjs artifacts/example.com/page-context. These are documented commands, with no successful execution established. Reusing a scaffold slug overwrites its manifest without an overwrite guard.
Included example
The scaffold creates a page-context tool with an optional echo input. Its implementation returns a success flag, the echoed value and a page object containing the title, current URL and first h1 heading text. A missing h1 produces null for that field.
The fixture supplies the echo value webmcp-gen validation. The generated Stagehand example loads webmcp.init.js before navigating to the target URL, finds the declared tool and invokes it with that fixture. No actual invocation output is included.
Assessment & evidence
Limits and failure modes
Validation invokes each tool once with one fixture. A pass requires registration, invocation, Completed status and no recognized failure signal. It detects errorText and object outputs with success set to false, but has no expected-value assertions. Incorrect data can therefore meet its passing conditions.
Compilation checks required fields and selected text patterns. It rejects literal eval( and new Function patterns and warns about selected Playwright-style calls, but it does not parse JavaScript syntax, sandbox implementations or comprehensively check their behavior. Authoring instructions about credentials and defensive code are not comprehensively enforced.
The generated script contains no domain or URL guard. If injected into another supported top-level page, its registration code still runs there. Tools are restricted to the top frame, so iframe-specific behavior is not supplied by this generator.
Site-specific selectors and network assumptions may need maintenance when a website changes. Authentication flows, broad input coverage, browser compatibility and production reliability are not assessed.
Benefits and tradeoffs
The main benefit is separating website behavior in a readable manifest from repeatable registration and invocation code. A developer can inspect each tool's schema, implementation and fixture together, then regenerate the browser artifact after changes.
This design appears best suited to repeat-used tasks whose page behavior is understood. That is an inference from its manually authored implementations and site-specific manifests. Authoring effort and future maintenance remain with the user, and no evidence quantifies improvements in speed, reliability or model usage.
Other implementation paths
Directly authoring navigator.modelContext registration code is a possible alternative visible in the compiler's generated template. It would require maintaining the registration, error handling and invocation wrappers yourself. No comparison establishes which approach takes less effort.
For a standalone application, the instructions describe scaffolding a Stagehand project with npx create-browser-app and loading webmcp.init.js through page.addInitScript. The browse CLI is the documented option for exploratory page inspection. Other generators and automation frameworks were not assessed.
Source evidence
The source snapshot contains SKILL.md, package.json, pnpm-lock.yaml, .gitignore, four helper scripts and the adjacent MIT notice. The immutable folder reference is [https://github.com/browserbase/skills/tree/6811ca31163332d9d60309cff48e77f09de37a17/skills/webmcp-gen].
The instructions establish intended use, the scripts establish implemented checks and generated behavior, and the lockfile establishes pinned dependency requirements. No generated manifest, browser transcript, eval.json, evaluation report or benchmark result is included. The repository configuration ignores artifacts and log files.
Access & freshness
Costs
The MIT notice grants permission to use the software without charge. Total operating cost is unknown: the files provide no provider prices, subscription requirements, token measurements or resource-use estimates.
Scaffolding and compilation are local Node scripts. The browser example and validator select Stagehand's LOCAL mode and contain no explicit language-model request. Those facts do not establish the full initialization requirements or operating costs of the pinned dependency.
Licence and reuse
The folder's LICENSE.txt applies the MIT License and names Browserbase, Inc. as the 2026 copyright holder. It permits use, modification, redistribution, sublicensing and sale, provided the copyright and permission notice accompany copies or substantial portions. It disclaims warranties.
The permission covers the software and accompanying documentation, including SKILL.md. The supplied material contains no parent-directory licence notice or dependency licence texts. Rights to third-party website content and dependency licensing are not established by the folder's MIT notice.
Version and compatibility
The source is fixed at revision 6811ca31163332d9d60309cff48e77f09de37a17, captured on 2026-11-16 at 22:08:38.122 UTC. This is a capture timestamp; the source's publication and last-maintenance dates are unknown.
The package reports version 0.1.0 and pins Stagehand to 3.6.0-alpha-fd42e65bb84825bdb7341a4953472db1ff774989. Browser support depends on the named WebMCP testing features. Changes after this revision and compatibility with newer Stagehand or browser releases are unknown.
Before relying on it
Start with the page-context scaffold using a Node version compatible with the pinned Stagehand build. Confirm that the chosen browser exposes navigator.modelContext and that registration and invocation work before writing a larger site integration.
For a real task, inspect the returned values against explicit expectations and exercise missing elements, invalid inputs and relevant page states. Review where the initialization script will be injected, because the generated artifact has no origin guard. Treat timeout responses carefully because underlying work is not cancelled.
Establish any provider configuration and operating costs separately. The current files support understanding the implementation, while actual installation success and task correctness remain unverified.
