JavaScript
Navigation
Take screenshot
Captures the device screen and returns it as a PNG image. An optional hideOverlay query parameter excludes the accessibility overlay from the capture.
GET
JavaScript
The response body is the PNG image itself (
Content-Type: image/png), not a JSON wrapper.
The accessibility overlay is the on-screen element-highlight layer controlled by the set overlay visibility endpoint. If you’ve enabled it, pass hideOverlay=true to capture a clean frame; on devices whose capture path sits below the overlay, the flag has no effect either way.