Loading...
Loading...
Captures screenshots at multiple viewport breakpoints for responsive design validation and documentation. Use when you need to test responsive layouts, validate mobile/tablet/desktop views, document design system breakpoints, or create visual regression test baselines. Triggers on "test responsive design", "screenshot at breakpoints", "capture mobile and desktop views", "responsive design testing", or "multi-device screenshots". Works with Playwright MCP tools (browser_navigate, browser_resize, browser_take_screenshot).
npx skill4agent add dawiddutoit/custom-claude playwright-responsive-screenshotsCapture responsive screenshots of https://example.com at mobile, tablet, and desktop breakpointshomepage-mobile.png| Device Category | Width × Height | Common Devices |
|---|---|---|
| Mobile | 375 × 667 | iPhone SE, iPhone 12/13/14 |
| Tablet | 768 × 1024 | iPad, iPad Mini, Android tablets |
| Desktop | 1920 × 1080 | Standard HD desktop/laptop |
URL: https://example.com/page
Breakpoints: mobile, tablet, desktop (standard)browser_navigatebrowser_resizebrowser_wait_forbrowser_take_screenshotfullPage: true{page-name}-{breakpoint}.pngscreenshots/User: "Capture responsive screenshots of https://myapp.dev/dashboard"
Assistant workflow:
1. browser_navigate to https://myapp.dev/dashboard
2. browser_resize(375, 667) → wait 1s → browser_take_screenshot("dashboard-mobile.png", fullPage: true)
3. browser_resize(768, 1024) → wait 1s → browser_take_screenshot("dashboard-tablet.png", fullPage: true)
4. browser_resize(1920, 1080) → wait 1s → browser_take_screenshot("dashboard-desktop.png", fullPage: true)
5. Report: "Captured 3 screenshots: dashboard-mobile.png, dashboard-tablet.png, dashboard-desktop.png"User: "Screenshot https://app.com at 414x896 (iPhone 14 Pro) and 393x851 (Pixel 7)"
Assistant workflow:
1. browser_navigate to https://app.com
2. browser_resize(414, 896) → wait 1s → browser_take_screenshot("app-iphone14pro.png", fullPage: true)
3. browser_resize(393, 851) → wait 1s → browser_take_screenshot("app-pixel7.png", fullPage: true){page-name}-{breakpoint}.pngdashboard-mobile.pngdashboard-tablet.pngsettings-mobile.pngUser: "Capture responsive screenshots for /home, /products, and /about pages on https://shop.com"
Assistant workflow:
For each page in ["/home", "/products", "/about"]:
1. browser_navigate to https://shop.com{page}
2. For each breakpoint in [mobile, tablet, desktop]:
- browser_resize(width, height)
- browser_wait_for(1 second)
- browser_take_screenshot("{page-name}-{breakpoint}.png", fullPage: true)
Result: 9 screenshots (3 pages × 3 breakpoints)screenshots/report.mdexamples/examples.mdbrowser_navigatebrowser_resizebrowser_wait_forbrowser_take_screenshot✅ Responsive Screenshots Captured
URL: https://example.com/homepage
Breakpoints: mobile, tablet, desktop
Pages: 1
Screenshots:
✓ homepage-mobile.png (375×667, 234KB)
✓ homepage-tablet.png (768×1024, 512KB)
✓ homepage-desktop.png (1920×1080, 1.2MB)
Location: /Users/username/screenshots/
Total time: 8.3 seconds
All screenshots captured successfully. Full-page screenshots enabled.✅ Responsive Screenshots Captured with Report
URL: https://shop.com
Breakpoints: mobile, tablet, desktop
Pages: 3 (/home, /products, /about)
Screenshots: 9 total
✓ home-mobile.png, home-tablet.png, home-desktop.png
✓ products-mobile.png, products-tablet.png, products-desktop.png
✓ about-mobile.png, about-tablet.png, about-desktop.png
Report: screenshots/report.md
View comparison report for side-by-side layout analysis.❌ Screenshot Capture Failed
URL: https://broken-site.com
Issue: Page failed to load (timeout after 30s)
Breakpoint progress:
✗ mobile - not attempted (navigation failed)
✗ tablet - not attempted
✗ desktop - not attempted
Recommendation: Verify URL is accessible and site is responding.browser_navigatebrowser_resizebrowser_wait_forbrowser_take_screenshot{page-name}-{breakpoint}.png