Snapshot

Get an accessibility snapshot of the current page, including element refs that can be reused by action commands.

Iframe content is detected automatically during snapshot capture. Same-origin iframe descendants are included beneath the iframe owner element, and their refs can be reused directly with action commands. Cross-origin iframes currently remain as owner nodes only.

Selector scoping is explicit. selector=... only searches the current frame scope, which defaults to main. To scope selector-based snapshots into an iframe, set the frame first with /frame or pinchtab frame.

terminal
pinchtab snap -i# Output[e5] link "More information..."# Use --full or --compact=false for JSONpinchtab snap --full
curl "http://localhost:9867/snapshot?filter=interactive"

CLI Flags

FlagDescription
-i, --interactiveFilter to interactive elements + headings (default: true)
-c, --compactCompact text output (default: true)
-d, --diffShow diff from previous snapshot
--fullFull JSON output (shorthand for --interactive=false --compact=false)
--textText output format
-s, --selectorCSS selector to scope snapshot
--max-tokensMaximum token budget
--depthTree depth limit
--tabTarget specific tab

Examples

terminal
pinchtab snap                           # Interactive compact (default)pinchtab snap -i -c                     # Same as abovepinchtab snap --full                    # Full JSON with all nodespinchtab snap -d                        # Show changes since last snapshotpinchtab snap --selector "#main"        # Scope to elementpinchtab snap --max-tokens 2000         # Limit output size
pinchtab snap                           # Interactive compact (default)pinchtab snap -i -c                     # Same as abovepinchtab snap --full                    # Full JSON with all nodespinchtab snap -d                        # Show changes since last snapshotpinchtab snap --selector "#main"        # Scope to elementpinchtab snap --max-tokens 2000         # Limit output size

API Parameters

ParameterDescription
filterinteractive for interactive + headings
formatcompact, text, yaml, or default JSON
difftrue for diff mode
selectorCSS selector to scope
maxTokensToken budget limit
depthTree depth limit