page_screenshot
Capture a PNG screenshot of the viewport, full scrollable page, or a specific element. Image coordinates map directly to click, tap, and drag actions, with optional native-resolution capture for fine detail.
Instructions
Capture a PNG screenshot that is 1:1 with CSS pixels. The default (current viewport) shares the exact coordinate space of page_click_at / page_tap_at / page_drag, so a point you read off the image can be clicked directly — a text line states the mapping. fullPage:true captures the whole scrollable page (document-relative: the note explains the scrollY conversion; prefer page_look/page_find to click). A single element by ref/selector gets a crop plus its page origin. fullRes:true returns native device pixels (2x on Retina) for fine detail. To see numbered click targets on the image, use page_look. Use sparingly — image content is expensive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| fullRes | No | keep native device pixels (2x on HiDPI) instead of normalizing to CSS px | |
| fullPage | No | capture the full scrollable page instead of just the viewport (ignored when ref/selector is given) | |
| selector | No | ||
| sessionId | No |