Capture screenshot
capture_visionCapture a pixel-accurate PNG of one element or the whole preview viewport in the live editor to verify visual results after changes. Optionally set desktop, tablet, or mobile mode first.
Instructions
Take a pixel-accurate PNG screenshot of one element (id) or of the whole preview viewport (no id), as rendered in the live editor; the ghost cursor moves to the element first so the user sees what you look at. device switches the editor's responsive mode (desktop, tablet, mobile) before capturing. Use it after every meaningful mutation to verify the visual result instead of assuming it. Returns the image plus {box, bytes}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Element ID; omit for the whole preview viewport. | |
| device | No | Responsive mode to capture. |