Chrome WebMCP is swapping a plain data shape for a real Tool object in Chrome 160. That sounds tidy, but it can quietly break any agent UI that serializes, clones, spreads, or caches the value returned by document.modelContext.getTools(). The safe move is simple: read the properties you need explicitly, then treat each tool object as a live handle rather than portable JSON.
The change is in Chrome 160.0.8185.0 and Chrome’s own update notes say the temporary tool.window fallback can be removed when Chrome 160 reaches Stable on 5 January 2027. If you are building an in page agent, a browser extension, or an agent test harness, this is the compatibility check worth doing before the stable release lands.
What changed in Chrome WebMCP?
Earlier WebMCP builds returned RegisteredTool dictionaries from getTools(). Chrome 160 returns Tool interface objects instead. Each object has a unique internal ID, and executeTool() uses that identity to call the precise registration that was discovered. That closes awkward races where one tool vanished or changed while an agent was trying to run it.
| Old assumption | Chrome 160 behavior | Safe response |
|---|---|---|
| A tool is a plain serializable object | A tool is an interface object with internal identity | Keep the object in memory and read fields explicitly |
{...tool} makes a useful copy | The spread produces no tool properties | Copy named fields into your own object |
structuredClone(tool) works | Cloning throws | Persist your own normalized data, not the handle |
| Empty fields are undefined | Empty schemas and annotations are null | Use null aware checks |
The compatibility pattern to use now
Do not put a tool into local storage, postMessage it, or create a shallow clone and expect it to remain executable. Build a small normalized record for display or logging, while retaining the original Tool object only for the immediate call to executeTool().
const tools = await document.modelContext.getTools();
const rows = tools.map((tool) => ({
name: tool.name,
title: tool.title,
description: tool.description,
origin: tool.origin,
source: tool.source ?? tool.window,
inputSchema: tool.inputSchema ?? null,
outputSchema: tool.outputSchema ?? null,
annotations: tool.annotations ?? null
}));
const selected = tools.find((tool) => tool.name === "searchOrders");
const result = await document.modelContext.executeTool(
selected,
{ customerId: "42" }
);
That source fallback matters during the transition. Chrome’s guidance specifically keeps tool.window as a temporary fallback until the stable rollout. This is the same sort of agent browser integration work that makes the new Chrome DevTools MCP debugging tools more useful, because your harness needs reliable tool identity before it can safely automate a browser task.
Technical deep dive: why object identity changes the failure mode
Chrome gives every returned Tool an internal ID. When a registration is removed, that old handle no longer becomes valid merely because a new tool appears with the same name. This avoids an agent accidentally running a replacement tool after a dynamic route change. It also prepares WebMCP for opaque origin documents and future worker support. The tradeoff is that a tool handle is deliberately not a transport format.
There is a second change for single page apps
Chrome 160 also adds document.modelContext.waitForToolsUntil(promise). A single page app can call it while it replaces route specific tools, telling a browser agent not to read the registry halfway through the update. Pair that with an AbortController for the outgoing route, then wait for the new registrations to settle before discovery.
This matters most for interfaces that generate actions dynamically, such as admin dashboards and commerce flows. It is also a useful companion to A2UI 1.0 renderer compatibility planning: in both cases, the durable part of your system should be a well defined contract, not a convenient object shape you happened to get in an early preview.
Rollout and limits you should not overlook
- WebMCP remains an Early Preview for Chromium based browsers, not a universal web platform baseline.
- The documented Chrome 160 API is still pre Stable. Feature detection and a transition fallback are sensible.
- Cross origin discovery still depends on explicit exposure rules. Do not treat a tool name as proof that its origin is trusted.
- For tools with real world side effects, register accurate annotations and keep a human confirmation step. This echoes the caution behind agent permission prompts that look simpler than they are.
For the broader protocol model and the current examples, read the official WebMCP project documentation. It explains that Tool objects come from getTools() and refer to a particular registration, which is exactly why they should not be treated as saved application state.
FAQ
Will Chrome 160 break every WebMCP app?
No. Apps that read properties directly and execute the original tool handle should be fine. The risky patterns are serialization, structured cloning, object spreading, and code that assumes empty fields are undefined.
When should I remove the tool.window fallback?
Chrome’s update notes point to the Chrome 160 Stable target of 5 January 2027. Keep the fallback while you support older preview builds, then remove it only after checking the browser versions your audience actually uses.
Can I save a Tool object and reuse it later?
No. Save a normalized record of fields for display or diagnostics, but fetch tools again before execution. A handle can become invalid when its underlying registration changes.
The bigger lesson is useful beyond WebMCP: agent interfaces need stable contracts, not accidental object shapes. Are you planning to normalize tool records at the boundary, or will you keep live browser objects inside your agent runtime? Share the approach you trust most before the Stable deadline catches your integration flat footed.


