Built upgraded Playwright MCP with ability to view DOM (for those who are writing their own AI testing agents)

Discussion

My team and I upgraded Playwright MCP to give AI agents better visibility into the DOM, and we open-sourced it.

If you’re building AI test agents and using Playwright MCP regularly, you may have run into cases where it does not “see” all interactive elements on a web page.

The reason is that standard Playwright MCP gives the LLM an ARIA snapshot, not the full set of interactable DOM elements. This abstraction limits the agent’s understanding of what elements do and how they fit into the user flow, which can lead to inconsistent decisions and execution errors.

We added serialization of the full DOM tree to give the agent more complete context.

I’ll leave the video comparison and GitHub link in the comments.

Have you faced this issue with Playwright MCP?

I’d appreciate your feedback if you try our upgraded version.

Posted Jun 3, 2026, 1:35 AM UTC

13
Loading comments…