screenshot
Capture the visible Chrome viewport as PNG at the current scroll position or for mobile, tablet, and desktop presets, optionally saving to a file.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| presets | No | Resizes the window per preset, then restores it; not phone emulation. A refused width is reported, not shot. save_to = directory | |
| save_to | No | Absolute path: write the PNG there and return the path instead of the content | |
| if_changed | No | Same pixels as the last screenshot of this tab: a note instead of the image. false = always send it |