Preview Site
Take a headless browser screenshot of site/index.html to visually inspect layout, colors, spacing, and alignment.
Steps
- Run headless Chromium to capture a full-page screenshot:
chromium --headless \
--screenshot=/tmp/tau-site-preview.png \
--window-size=1280,4000 \
--disable-gpu --no-sandbox \
"file://$(pwd)/site/index.html"
- Read the screenshot image at
/tmp/tau-site-preview.pngusing the Read tool -- it supports images natively.
- Inspect the rendering and report any issues with layout, alignment, spacing, colors, or font consistency.
- Clean up:
rm /tmp/tau-site-preview.png
Notes
- The
--window-size=1280,4000height should be tall enough to capture the full page without scrolling. Increase if the page grows. - Chromium will emit dbus/vaapi warnings on headless servers -- these are harmless and can be ignored.
- For mobile layout testing, use
--window-size=375,2000.