e2e_capture
Captures a screenshot of any URL on demand through a Chrome pool, returning the image and its ss:HASH for visual verification or debugging.
Instructions
Capture a screenshot of any URL on demand. Connects to the Chrome pool, navigates to the URL, takes a screenshot, and returns the image with its ss:HASH.
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": "e2e_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project root directory (defaults to the current working directory). | |
| url | Yes | Full URL to capture (e.g. "https://example.com" or "http://host.docker.internal:3000/dashboard") | |
| delay | No | Wait N milliseconds after page load before capturing (default: 0) | |
| filename | No | Output filename (default: capture-<timestamp>.png) | |
| fullPage | No | Capture full scrollable page (default: false) | |
| selector | No | Wait for this CSS selector before capturing | |
| authToken | No | JWT or auth token to inject into localStorage before navigating (for authenticated pages) | |
| waitUntil | No | Navigation wait strategy. "auto" (default) tries networkidle2 first with a short timeout, then falls back to domcontentloaded + delay for SPA/WebSocket apps. Use "domcontentloaded" for apps with persistent connections (WebSocket, SSE). | |
| authStorageKey | No | localStorage key name for the auth token (default: "accessToken") |