executeautomation/mcp-playwright

Optimized Snapshots (Accessibility trees)

Closed this issue · 3 comments

This MCP server use playwright_get_visible_html tool to get the page HTML, in. case on complex site (which are almost every now a days) this response is actually large and LLM is unable. to process that. Also there is no point to get whole HTML always, as we do not need most JS, and CSS.
I think another tool should be added like browser_snapshot from like one from Microsoft Playwright MCP . this reduce the page text drastically. I think if this feature is added, this MCP server will become way ahead of microsoft, as only plus point in microsoft MCP is this snapshots.

@usamaJ17 @sabbadino yes, I agree. Do you guys have any ideas for combining the mcp from Microsoft one with this playwright mcp? So, we dont need to implement from scratch for snapshot features.

@danielsyahputra This was the PR: #121
and its approved now