import { CodeBlock } from "@/components/code-block"; export default function Snapshots() { return (
The snapshot command returns the accessibility tree with refs for AI-friendly interaction.
Filter output to reduce size:
| Option | Description |
|---|---|
-i, --interactive |
Only interactive elements (buttons, links, inputs) |
-c, --compact |
Remove empty structural elements |
-d, --depth |
Limit tree depth |
-s, --selector |
Scope to CSS selector |
Use --json for machine-readable output:
-i to reduce output to actionable elements--json for structured parsing-s for specific page sections