snapshot_save
Render a UI component and save a named screenshot snapshot to establish a visual baseline for regression testing.
Instructions
Render a component and save the screenshot as a named snapshot. Use this to establish a baseline before making changes. Later use snapshot_check to detect visual regressions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique name for this snapshot (e.g. 'header-desktop', 'button-hover') | |
| code | Yes | Component code to render and snapshot | |
| framework | No | Framework | react |
| width | No | Viewport width (px) | |
| height | No | Viewport height (px) | |
| darkMode | No | Render with dark mode | |
| tailwindVersion | No | Tailwind CSS version (3 or 4) | 3 |