screenshot
Capture the visible viewport as a PNG, with options for preset sizes, background tab handling, and downscaling to 1568px.
Instructions
Screenshot of the visible viewport only (PNG), at the current scroll position, or one per viewport preset with presets. Read-only. Activates the tab in the background without stealing window focus, then restores the previous tab. Downscaled to ≤1568px: for fine print, element_screenshot with scale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| presets | No | One capture per preset, window restored; save_to = directory, one file each | |
| save_to | No | Absolute path: write the PNG there and return the path instead of the content |