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:Resolution
Screenshot dimensions follow the browser’s screen size, set at browser creation withscreen_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).