Dock screenshot
dock_screenshotCapture a tab's visible area or a specified element as a JPEG, even in a background tab, when layout or images matter.
Instructions
A JPEG of the tab's visible area (or one element: ref), at most max_width px wide. Works in a background tab. Prefer dock_snapshot for acting — use this when layout or images matter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref to capture instead of the whole viewport | |
| tab_id | Yes | Tab id from dock_tabs or dock_open. | |
| quality | No | Compression quality (1-100) for the returned image | |
| max_width | No | Downscale the image to at most this width in pixels |