Capture a screenshot and compact accessibility snapshot of the current page.
snapshot command is the primary page observation tool. It captures a screenshot and prints a compact accessibility tree for the current page so agents can inspect page structure without sending page state to a separate analysis model.snapshot before guessing at selectors, after workflow failures, and whenever the visible page state is unclear.1npx libretto snapshot --session debug-example
path refstringl16 or
e16. Each call captures a fresh screenshot and accessibility tree, then
scopes the printed tree to that ref.path --sessionstringrequiredpath --pagestringnpx libretto pages --session <name> to list page IDs when a popup or new tab is open. See pages for details.snapshot saves a screenshot under .libretto/sessions/<session>/snapshots/<snapshot-id>/page.png.snapshot <ref>.l16. Numeric-suffix aliases such
as e16 also match l16.snapshot does not require AI provider credentials or a configured model. The legacy snapshotModel config key is deprecated and ignored by the default snapshot flow.12345678# Basic snapshot npx libretto snapshot --session debug-example # Snapshot a specific page in a multi-page session npx libretto snapshot --session debug-example --page <page-id> # Inspect a subtree from the latest full snapshot npx libretto snapshot <ref> --session debug-example