June 19, 2026

WebMCP support in Stagehand 3.6

Stagehand 3.6.0 is live.

With WebMCP support, a page can expose typed, first-party tools directly to your agent — so Stagehand calls those tools instead of inferring actions from the DOM. Discover what a page offers with page.listWebMCPTools() and run one with page.invokeWebMCPTool().

const page = stagehand.context.pages()[0];
await page.goto("https://example.com");

// Discover the tools the page exposes
const tools = await page.listWebMCPTools();

// Invoke one directly
const result = await page.invokeWebMCPTool(
  "searchFlights",
  { origin: "SFO", destination: "JFK" },
  { frameId: tools[0].frameId },
);

Read the WebMCP docs →

Plus:

  • Azure OpenAI auth via Microsoft Entra ID.
  • claude-fable-5 support, with adaptive thinking and the new xhigh effort.
  • Smarter act caching — URLs that differ only in query-param order now hit the cache.

Fixes:

  • Shadow-root XPath resolution so deterministic actions can target elements inside web components.
  • Security and dependency updates.