Skip to main content
Glama
SJMakin

even-better-playwright-mcp

by SJMakin

snapshot

Capture compressed accessibility snapshots of web pages with ref IDs for automated browser interaction. Use refs like $('e1').click() to execute actions, track page updates with diff mode, and filter results with search patterns.

Instructions

Get compressed accessibility snapshot with ref IDs.

Returns: DOM tree with [ref=e1], [ref=e2] etc. Use refs with execute tool: await $('e1').click() Call again after navigation (refs become stale).

Options:

  • compress: Enable smart compression (default: true) Reduces token usage by ~90% via list folding and wrapper removal.

  • search: Search pattern (string or regex) to filter results with context

  • showDiff: Show changes since last snapshot (useful for tracking page updates)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
compressNoWhether to compress the snapshot using smart outline
searchNoSearch pattern (string or regex) to filter snapshot results
showDiffNoShow diff since last snapshot call

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SJMakin/even-better-playwright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server