examples/sandbox/tutorials/vision_website_clone/README.md
Use the sandbox view_image tool to inspect a reference app screenshot, then
reproduce the visible screen as a static HTML/CSS artifact. This is a narrow UI
repro target for vision and screenshot-debugging; it is not a web-app scaffold.
This demo is intentionally file-only: no FastAPI, no exposed port, and no local
browser server. The agent calls view_image, lazy-loads the playwright skill,
writes the site under output/site/, captures browser screenshots for visual
revision, and the host copies the generated site plus the visual-review
artifacts back to this example's output/ directory.
Run the Unix-local example from the repository root:
uv run python examples/sandbox/tutorials/vision_website_clone/main.py
To run the same manifest in Docker, build the shared tutorial image once and pass
--docker:
docker build -t sandbox-tutorials:latest -f examples/sandbox/tutorials/Dockerfile .
uv run python examples/sandbox/tutorials/vision_website_clone/main.py --docker
output/index.htmloutput/styles.cssoutput/screenshots/draft-1.pngoutput/screenshots/draft-2.pngoutput/visual-notes.mdOpen output/index.html locally after the run to inspect the generated clone.
Open the copied draft screenshots to inspect the agent's visual-debug loop.
reference/.view_image, and the
lazy-loaded playwright skill.view_image("reference/reference-site.png").output/screenshots/draft-1.png, view it with
view_image, revise, then repeat with output/screenshots/draft-2.png.output/site/, output/screenshots/,
and output/visual-notes.md; main.py copies the site files and review
artifacts to this example's output/.