Media
Screenshot API
Section titled “Screenshot API”screenshot(options?)captureViewport(options?)captureElement(selector, options?)captureRegion(x, y, width, height, options?)
Screenshot modes
Section titled “Screenshot modes”Viewport
Section titled “Viewport”Capture the visible area of the page.
Element
Section titled “Element”Capture the bounds of a single element.
Region
Section titled “Region”Capture an arbitrary rectangle on the page.
Full-page images
Section titled “Full-page images”The current capture layer does not expose a dedicated full-page screenshot API. If you need a single page-long image, capture multiple viewport slices and stitch them externally.
The media layer keeps capture behavior focused on fast screenshots and clipped captures.