Repository navigation
Screenshots
Brook Li edited this page Oct 16, 2026
·
1 revision
node <skill-root>/runtime/cli/screenshot.mjs <prototype.html> [--out=dir] [--browser=exe] [--width=1440] [--height=900] [--snapshot=path]- Default snapshot:
<html-dir>/prototype/notes.snapshot.js; default output:<html-dir>/screenshots/. - One PNG per id in
snapshot.scenarios(must be declared explicitly) →<scene-id>.png. - URL:
file://…/prototype.html?scene=<id>&collapsed=1&product-only=1— rail, connectors, Mark and author UI hidden. - Uses headless Edge/Chrome (
--headless=new, scale factor 1, 2 s virtual time budget). If none is found, pass--browser=. - Scenario ids must be safe filenames (1–120 chars, no
<>:"/\|?*, no trailing dot/space, no Windows device names). - On any failure, already-written PNGs are kept and the process returns failure.
Reference: screenshots.md.
Getting started
Concepts
Authoring
UI packs
Reference