Skip to main content
A cloud browser is a normal CDP endpoint, so screenshots work the way your framework takes them, and they save wherever your code runs.

Where screenshots are saved

The most-asked question first: screenshots taken through Playwright or Puppeteer are written by your code, to a path you choose. Nothing is stored on the browser — the browser’s automatic recording is separate.

Full page, not just the viewport

By default a screenshot captures the visible viewport. For the whole page, top to bottom:
Playwright stitches the scroll automatically. The result contains page content only, no URL bar or browser chrome, because CDP screenshots capture the rendered page, not the window.

Resolution

Screenshot dimensions follow the browser’s screen size, set at browser creation with screen_width and screen_height. Set them explicitly if screenshots must match a target resolution:

Screenshots vs recording

Screenshots are moments; recording is the whole browser session as video — every browser records automatically, and you fetch a fresh MP4 URL on demand. For debugging agent behavior, recording is usually what you want; for artifacts and QA evidence, screenshots.

From agent tasks

Ask the agent to take screenshots as part of a task and collect them from the run’s output files (GET /runs/{id}/files?kind=output).