studio_screenshot
Capture high-DPI (2x) screenshots of the current frame. Use a CSS selector for a specific element or capture the full scroll height, saving as a PNG.
Instructions
Take a high-DPI (2x) screenshot of the current frame and save it as a PNG in the output directory. Works any time during a session — element-only via selector, or full_page for the whole scroll height. Returns the file path. Clear captions/rings first unless you want them in the shot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name without extension; slugified to lowercase-dashes. e.g. 'dashboard-hero' → dashboard-hero.png in the output dir. Reused names overwrite. | |
| selector | No | Capture just this element (CSS selector) instead of the viewport. Optional. When set, full_page is ignored. | |
| full_page | No | true captures the entire scroll height, not just the visible viewport. Optional; default false. Ignored when selector is set. |