meyerhold
Progressive reader for Playwright MCP snapshot JSON files.
Parses the JSON output from browser_snapshot tool, which wraps Playwright's accessibility tree snapshot in MCP format.
Features
- Summary view - Quick overview of page URL, title, tabs, errors, element count, and clickable elements
- Content preview - DOM-ordered view of headings, text, buttons, links, and inputs
- Clickable elements - List interactive elements with disabled filtering
- Section extraction - View tabs, errors, page state, or accessibility tree
- Element listing - List buttons, links, inputs, headings, images by type
- Tree navigation - Explore DOM structure with depth control
- Search - Find elements by text pattern or regex
- Multiple output formats - Text, table, or JSON
Installation
# From crates.io
# From source
Usage
# Summary view (default)
# List clickable elements (excludes disabled)
# Show specific sections
# Tree navigation
# Element listing
# Search
# Output formats
Example Output
=== Snapshot Summary ===
Page URL: https://example.com/
Page Title: Example Domain
Tabs: 1
Errors: 0
Elements: 150
Clickable: 42 (3 disabled excluded)
# Welcome to Example
This is an example page.
[e12] button: Sign In
[e15] link: Learn More
[e23] input: Email address
... (truncated)
Next: --list clickable (show interactive elements)
--section <tabs|errors|tree|page> for details
--search "pattern" to find specific content
Clickable Elements
The --list clickable option shows all interactive elements that can be clicked:
- button
- link
- textbox, checkbox, radio, combobox, searchbox
- tab
Elements with [disabled] attribute are automatically excluded.
Development
# Build
# Run tests
# Run with debug output
License
MIT