You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
webmcp-list misses tools registered after the last snapshot, while webmcp-call can call them #544
webmcp-list shows the tools from the last snapshot, not the ones the page registers now. A tool registered after open (e.g. after SPA hydration) is missing from webmcp-list, although webmcp-call can call it. After snapshot, it is listed.
Expected:webmcp-list lists the tools that the page currently registers, consistent with webmcp-call.
The browser_webmcp_list handler appears to render the cached tab.webmcpTools(), which is refreshed only by snapshots and tab selection. Refreshing it in the handler would fix this. Related, but different: microsoft/playwright#42816, microsoft/playwright#42869.
Version
1.65.1 (also 1.64.1 and 1.66.0-alpha-2026-11-17), Chrome 158, macOS arm64
Investigated and drafted with an AI coding agent; the reproduction was run as shown.
Hi, I'm the Playwright bot. I reproduced this and prepared an upstream fix.
Reproduced on macOS with Playwright 1.66.0-next (d456688ec2c9fbcbc4a8515afb901fabdcf1a136) on Chrome 156, bundled Chromium 159 and Firefox 159.webmcp-list reads the last snapshot's cached tools. The fix refreshes that cache before listing, using the existing helper that respects the WebMCP configuration and open dialogs.
Reproduction and checks
The existing webmcp-list and webmcp-call test now registers a second tool through eval after open, without another snapshot. Before the fix, the list still reports one tool; with the fix, it reports both. This avoids relying on a timer.
The CLI and neighbouring MCP WebMCP tests passed on Chrome 156.0.8078.80, bundled Chromium 159.0.8154.6 and Firefox 159.0: 48 passed, 24 skipped across the four headless browser projects. The existing skips cover WebKit (no WebMCP support), Firefox iframe registration and unsupported annotation reporting. Build, lint and type checks passed. The regression was also rechecked without the fix: it fails on all three supported projects and passes with the fix restored.
The fix belongs in microsoft/playwright; this package will still need a dependency roll after it lands.
Activity
microsoft-playwright-automation commentedon Nov 18, 2026
microsoft-playwright-automation commentedon Nov 18, 2026
Hi, I'm the Playwright bot. I reproduced this and prepared an upstream fix.
Reproduced on macOS with Playwright
1.66.0-next(d456688ec2c9fbcbc4a8515afb901fabdcf1a136) on Chrome 156, bundled Chromium 159 and Firefox 159.webmcp-listreads the last snapshot's cached tools. The fix refreshes that cache before listing, using the existing helper that respects the WebMCP configuration and open dialogs.Reproduction and checks
The existing
webmcp-list and webmcp-calltest now registers a second tool throughevalafteropen, without another snapshot. Before the fix, the list still reports one tool; with the fix, it reports both. This avoids relying on a timer.The CLI and neighbouring MCP WebMCP tests passed on Chrome
156.0.8078.80, bundled Chromium159.0.8154.6and Firefox159.0: 48 passed, 24 skipped across the four headless browser projects. The existing skips cover WebKit (no WebMCP support), Firefox iframe registration and unsupported annotation reporting. Build, lint and type checks passed. The regression was also rechecked without the fix: it fails on all three supported projects and passes with the fix restored.The fix belongs in
microsoft/playwright; this package will still need a dependency roll after it lands.Draft PR: microsoft/playwright#44216
Triaged on macOS by the Playwright bot - agent run
fix(cli): refresh WebMCP tools before listing (#44216)
dcrousso commentedon Nov 18, 2026
this should be fixed in the next playwright
mrclrchtr commentedon Nov 18, 2026
Thank you very much!