WebMCP
When your browser supports it, the TagSpy home page tells an in-browser AI agent what it can do. The agent can then inspect a property on your behalf without scraping the page.
What it is
WebMCP is an emerging browser API, navigator.modelContext, that lets a web page register tools an agent can call. TagSpy registers four, all read-only and no sign-in needed:
| Tool | Input | Returns |
|---|---|---|
spy_ga4_property | { id: "G-XXXXXXXXXX" | url } | The published GA4 configuration as JSON. |
spy_firebase_app | { appId: "1:123:android:abc" } | The Firebase app analytics configuration as JSON. |
inspect_gtm_container | { id: "GTM-XXXXXXX" | url } | Tags, triggers, variables and stats of the container. |
get_current_spy_result | none | The last result any of the tools returned in this tab. |
Tools call TagSpy's own public endpoints (/api/ga4/[id], /api/firebase/[id], /api/gtm/[id], /api/resolve) and return JSON text.
Browser support
WebMCP is experimental and currently available only in some preview builds of Chromium-based browsers, usually behind a flag. TagSpy feature-detects navigator.modelContext; where it is missing the page does nothing extra, and nothing changes for regular visitors.
// Sketch of what the page does
if ("modelContext" in navigator) {
navigator.modelContext.registerTool({
name: "inspect_gtm_container",
description: "Read a published Google Tag Manager container",
inputSchema: { type: "object", properties: { id: { type: "string" } } },
async execute(args) { /* fetch /api/gtm/<id> */ },
});
}Privacy
- Tools run in your browser tab, and only when an agent you use calls them.
- They request public configuration through TagSpy, the same as typing an ID into the search box. Nothing from your accounts or other tabs is exposed.
- The last result is kept in memory for the tab and is gone when you close or reload it.
- For unattended or scripted use, the MCP server and REST API are the better fit.