emergent_screenshot_preview
Capture live preview screenshots at multiple viewport sizes to verify responsive design across phone, tablet, laptop, and TV displays.
Instructions
Take screenshots of the live preview at multiple viewport sizes (phone, tablet, laptop, TV). Requires Playwright (installed automatically with the package).
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": {
"previewUrl": "<previewUrl>"
},
"name": "emergent_screenshot_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputDir | No | Directory to save screenshots (default: /tmp) | |
| viewports | No | Viewport sizes to capture (default: [phone, laptop]) | |
| previewUrl | Yes | Preview URL to screenshot |