webpage_screenshot
Screenshot the web page in the device browser (iOS Safari or Android Chrome, auto-detected). ANDROID: a clean capture of the web CONTENT — pass selector or ref to capture just that element (scrolled into view). iOS: element-clipped web capture is unavailable, so this returns the full DEVICE frame (includes the Safari chrome/status bar); selector/ref clipping is Android-only and is ignored on iOS (a note is returned). Returns a JPEG image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Android only: capture just this element, named by a ref from a page-elements listing | |
| udid | Yes | Device UDID / serial (iOS or Android) | |
| pageId | No | Target page/tab id — auto-picked when omitted | |
| socket | No | Android only: abstract unix socket name (default: chrome_devtools_remote) | |
| selector | No | Android only: capture just this element (CSS selector), scrolled into view | |
| platformVersion | No | Ignored (kept for compatibility) |