Guide · WebMCP

WebMCP not working: a troubleshooting checklist

Updated · Checked against the WebMCP draft of 19 November 2026 · By the WebMCP Agency research desk

On this page
  1. 1. Is WebMCP switched on in this browser?
  2. 2. Has your origin-trial token expired?
  3. 3. Is the page a secure context?
  4. 4. Are you calling the right object?
  5. 5. Does registerTool reject?
  6. 6. Is a permissions policy blocking it?
  7. 7. Form tools: are both attributes there?
  8. 8. Can the caller see the tool?
  9. 9. Did a Chrome update change something?
  10. 10. Lighthouse shows no WebMCP results
  11. How to see what Chrome registered

If WebMCP is not working, check the token first: Chrome only gives a page WebMCP through a valid origin-trial token (or the testing flag on your own machine), and tokens issued for the trial’s first period expired on 17 November 2026 on the sites we checked. Chrome ignores expired tokens, so tools that worked last month can silently disappear. If the token is valid, the usual causes are an insecure page, a tool name or description that breaks the WebMCP rules, a duplicate name, or a permissions policy that turns the feature off. Work down the checklist below in order. Our free check reads the WebMCP tool forms in your HTML and tells you what is wrong with them.

1. Is WebMCP switched on in this browser?

WebMCP is not on by default in Chrome. A page gets it in one of two ways:

  • A valid origin-trial token on the page, for real visitors.
  • chrome://flags/#enable-webmcp-testing, for local development on your own machine.

If tools work for you but not for anyone else, you probably have the flag on and no valid token. Turn the flag off and test again.

2. Has your origin-trial token expired?

Chrome’s origin-trial registry lists the WebMCP trial as active, extended to Chrome 162 with an end time of 30 March 2027. Tokens issued for the first period do not extend on their own. Chrome’s docs say “Chrome ignores invalid or expired tokens” and that, for an extended trial, you renew under My Registrations and put the new token on every enrolled page.

The WebMCP origin trial guide shows how to read your token’s expiry date and renew it.

Also check that the origin inside the token matches the page’s origin. The same guide shows how to read it.

3. Is the page a secure context?

document.modelContext exists only in a secure context, per the WebMCP draft’s IDL. That means HTTPS, or localhost during development. On a plain http:// page, document.modelContext is undefined.

4. Are you calling the right object?

The current draft puts the API on the document:

if (document.modelContext?.registerTool) {
  // register tools here
}

Older examples use navigator.modelContext, provideContext, clearContext or unregisterTool. None of those are in the current draft. To remove a tool now, pass an AbortSignal when you register it and abort it later.

5. Does registerTool reject?

registerTool() returns a Promise. Await it and log the error. The draft defines these rejections:

Error Cause Fix
InvalidStateError Name is not 1 to 128 characters of ASCII letters, digits, _, - or . Rename it, for example search_products
InvalidStateError Description is empty Write a description that says what the tool does
InvalidStateError Another tool with the same name is already registered in this document Use unique names, or abort the old registration first
NotAllowedError The document does not have the tools permission See the next step

Spaces in names are a common cause: search products breaks the rule, search_products passes.

If the signal you pass is already aborted, the Promise also rejects.

6. Is a permissions policy blocking it?

The draft makes WebMCP a policy-controlled feature named tools, allowed for the page’s own origin by default.

  • A response header Permissions-Policy: tools=() turns it off for the page.
  • A cross-origin iframe needs allow="tools" on the <iframe> element to register tools.

Check the response headers in the DevTools Network panel, including headers your CDN or framework adds.

7. Form tools: are both attributes there?

A form becomes a tool only with both toolname and tooldescription on the <form>. Chrome’s docs say removing either one unregisters the tool, so a script that changes the form’s attributes can make the tool vanish.

Two more things to check on form tools:

  • Parameter descriptions. Use toolparamdescription on each field. Without it Chrome falls back to the field’s <label>, then aria-description.
  • Submission. Without toolautosubmit, the agent fills the form but the user must press submit.

tooltitle and toolparamtitle are not in any Chrome or spec document we found. Do not rely on them.

8. Can the caller see the tool?

Tools are hidden from other origins by default. A cross-origin caller sees a tool only if the registering page lists the caller’s origin in exposedTo and the caller passes the tool’s origin in fromOrigins. Both take secure origins only.

9. Did a Chrome update change something?

Chrome’s docs list recent changes that break older code:

  • Since Chrome 155, passing JSON-stringified input to executeTool() is deprecated. Pass an object.
  • Since Chrome 156, window.ontoolactivated and window.ontoolcancel are unsupported. Listen on document.modelContext instead.

The API is still moving. The spec tracker lists what changed and when.

10. Lighthouse shows no WebMCP results

Lighthouse’s Agentic Browsing category needs Chrome 150 or later, and its WebMCP audits need the origin trial. Without a valid token the audits have nothing to read.

How to see what Chrome registered

Open DevTools, go to the Application panel and select WebMCP. Chrome’s docs say the pane lists registered tools, logs each call with its input and output, and lets you run a tool by hand. If your tool is not in that list, it was not registered; work back through the steps above.

If you are starting from scratch, how to add WebMCP walks through a form tool and a script tool. The sites below had working tools in Chrome, each with the date we last found them working.

Questions people ask

Why are my WebMCP tools not showing up in Chrome?

The most common reason since 17 November 2026 is an expired origin-trial token: tokens issued for the trial's first period have expired, and Chrome ignores expired tokens. Other causes are a page that is not a secure context, a tool name or description that breaks the rules, a duplicate name, or a permissions policy that turns the tools feature off.

Why does registerTool throw InvalidStateError?

The WebMCP draft rejects registerTool with InvalidStateError when the name is not 1 to 128 characters of ASCII letters, digits, underscore, hyphen or dot, when the description is empty, or when a tool with the same name is already registered in the document.

Why does registerTool throw NotAllowedError?

The document does not have the tools permission. Check for a Permissions-Policy header that sets tools=(), and for cross-origin iframes that lack allow="tools".

Is it navigator.modelContext or document.modelContext?

document.modelContext. The current WebMCP draft puts modelContext on the Document, and Chrome's docs use only document.modelContext.

My tools work on my machine but not for visitors. Why?

You probably have chrome://flags/#enable-webmcp-testing switched on. The flag turns WebMCP on for your own browser without a token. Visitors need a valid origin-trial token on the page.

Why did my form tool disappear?

Chrome's docs say removing either toolname or tooldescription from the form unregisters the tool. A form tool needs both attributes.

Sites in the directory

Real sites whose WebMCP tools worked in Chrome, with the date we last found them working.

See every site in the directory

Sources

  1. WebMCP, Draft Community Group Report (19 November 2026) (read 2026-11-20)
  2. WebMCP imperative API (Chrome for Developers) (read 2026-10-23)
  3. WebMCP declarative API (Chrome for Developers) (read 2026-10-23)
  4. WebMCP (Chrome for Developers) (read 2026-11-20)
  5. Get started with origin trials (Chrome for Developers) (read 2026-11-20)
  6. Chrome origin trials: WebMCP (trial registry entry) (read 2026-11-20)
  7. Debug WebMCP in the Application panel (Chrome DevTools) (read 2026-10-23)
  8. Lighthouse agentic browsing scoring (Chrome for Developers) (read 2026-10-23)