spa_screenshot
Capture screenshots of single-page applications with framework-specific stability detection. Supports React, Vue, Angular, and generic SPAs.
Instructions
Take a screenshot of a web page with SPA framework support. Waits for DOM to stabilize before capturing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spa_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to navigate to (optional if using existing session) | |
| device | No | Device to emulate (e.g., "iPhone 15", "Pixel 7", or shortcuts like "iphone", "pixel") | |
| session | No | Session ID for persistent browser state | default |
| spaMode | No | SPA framework mode for better stability detection | |
| fullPage | No | Capture full page screenshot | |
| selector | No | CSS selector to screenshot (element screenshot) | |
| waitForIdle | No | Wait for DOM idle time in ms before screenshot |