webmcp-tour enters the scene as an experimental 0.x package that lets any WebMCP agent guide users through an application. A single script tag is enough to get started. The package remains experimental, so the API may shift between minor releases and WebMCP itself is still experimental in browsers.

One script tag gets you started

Developers can add the tour script via an unpkg CDN link. For production use the exact version must be pinned and locked with Subresource Integrity. Using @latest is discouraged because SRI becomes impossible and 0.x releases can break silently. The package is side-effect free so it is safe to import on the server. A quick experiment link always serves the newest version while the production script pins version 0.1.0 and includes an integrity hash.

No markup or config for basic use

Any WebMCP agent can now list what appears on a page. The tour_list_targets tool returns a visible outline of headings and controls. The agent can point at anything by its visible text. No markup or config is needed for this basic capability. Optional settings live in a JSON block that the script tag references via data-config. Only JSON-safe options are accepted: pages, labels, pageSuggestion, resume, takeMeThere. The navigate function cannot be set via data-config and must be provided in code.

JSON config block

A configuration script tag uses the id of exactly one