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.
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": {
"url": "<url>"
},
"name": "spa_screenshot"
}
}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 |