spa_screenshot
Capture screenshots of JavaScript Single Page Applications after full rendering. Use a headless browser to execute scripts and generate PNG images of web pages.
Instructions
Take a screenshot of a JavaScript SPA page after rendering. Uses a headless browser to execute JavaScript and capture the visual output as PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to screenshot | |
| waitForSelector | No | CSS selector to wait for before capturing | |
| waitTimeout | No | Navigation timeout in ms (default: 30000) | |
| width | No | Viewport width in pixels (default: 1280) | |
| height | No | Viewport height in pixels (default: 720) | |
| fullPage | No | Capture full scrollable page (default: false) | |
| cookies | No | Cookies to inject before screenshot | |
| headers | No | Custom HTTP headers |