snapshot_save
Render a UI component and save its screenshot as a named baseline snapshot. Compare with later snapshots to detect visual regressions.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"code": "<code>"
},
"name": "snapshot_save"
}
}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 |