Responsive Preview: ${url}
${screenshots.map(s => `
`).join('')}
`;
res.send(html);
});
app.listen(3000);
```
## Monitoring Responsive Breakages
Set up automated checks that catch responsive issues:
```python
import requests
from PIL import Image
from io import BytesIO
def check_responsive(url):
issues = []
# Capture mobile screenshot
response = requests.post(
'https://api.toolcenter.dev/v1/screenshot',
json={'url': url, 'width': 375, 'height': 667, 'mobile': True, 'fullPage': True, 'format': 'png'},
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
img = Image.open(BytesIO(response.content))
# Check if page is wider than viewport (horizontal scroll)
if img.width > 375 * 2: # Account for device scale factor
issues.append('Horizontal overflow detected on mobile')
# Check if page is extremely tall (possible layout break)
if img.height > 667 * 2 * 10:
issues.append('Page is unusually tall on mobile — possible layout issue')
return issues
```
## Conclusion
Mobile screenshot testing with the ToolCenter eliminates the need for device farms and manual testing. Capture every viewport size programmatically, integrate it into your CI/CD pipeline, and catch responsive design issues before your users do. The parallel request support means you can test 6+ breakpoints in the time it takes to capture one screenshot.