screenshot_page
Capture a PNG screenshot of the composited page to visually verify WebGPU rendering results as presented, independent of render target pooling.
Instructions
Capture a PNG screenshot of an instrumented page and return it as an image. This reads the COMPOSITED page — the WebGPU canvas exactly as it was presented — so it is the reliable way to SEE what an engine rendered, independent of how it pools/aliases its render targets (reading a pooled target back after the frame is unreliable; the presented surface is not). Requires a page opened via launch_browser/open_page. Use this to visually verify a rendering change, not to inspect intermediate G-buffer contents (use read_texture / capture_frames for those).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Page to screenshot. Optional when exactly one page is connected. | |
| fullPage | No | Capture the full scrollable page instead of just the viewport (default false). Ignored when selector is set. | |
| selector | No | Optional CSS selector to clip the shot to one element (e.g. "canvas"). |