Screenshot
screenshotCapture a tab's viewport, full page, or one element as an image, optionally labeling interactive elements with numbered refs. Downscale or save to file to reduce token use.
Instructions
Captures the viewport, the full page, or one element. With annotate=true, draws numbered boxes labelled with element refs over interactive elements (Set-of-Mark) so you can point at things visually. Images are downscaled to maxWidth to save tokens; savePath writes a file instead of returning the image. Works on background tabs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from page_snapshot or find, e.g. "e12". | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| format | No | Image format (default jpeg). | |
| quality | No | JPEG/WebP quality 1-100 (default 80). | |
| annotate | No | Draw ref labels over interactive elements (default false). | |
| fullPage | No | Capture the whole scrollable page (default false). | |
| maxWidth | No | Downscale so the image is at most this wide (default 1280). | |
| savePath | No | Absolute file path to save to. Defaults to a file in the kyte-webmcp output folder. |