Screenshot
screenshotCaptures the visible browser viewport as an image to inspect a page's actual layout when selectors and text fall short. Save full-resolution files or read fine detail with a full-resolution return.
Instructions
Take a screenshot of the visible viewport as an image you can look at directly.
The fastest way to understand a page's actual layout when selectors and text are not enough. Set window_size and device_scale_factor on start_browser first — the default viewport is roughly 800x600, which is why screenshots come out small. The returned image is JPEG quality 60, downscaled to 1024px wide unless full_resolution is set; save_path files keep full resolution and are also published as a resource. Returns the image plus its returned and full dimensions and any saved file.
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 | No | Tab id from list_tabs or new_tab to act on, instead of the active tab. The active tab does not change. Omit to use the active tab. Example: 'tab_2' | |
| save_path | No | Path to also write the image to on the server's filesystem, at FULL resolution. The extension picks the format: .png, .gif, and .bmp are saved losslessly, anything else as JPEG. Omit to return the image without writing a file. Example: '/tmp/page.png' | |
| full_resolution | No | Return the image without downscaling. By default the returned image is capped at 1024px wide to save vision tokens; set true when you need to read fine detail. Example: false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | The full-resolution file, when save_path was given. | |
| width | Yes | Width in pixels of the returned image. | |
| format | Yes | Format of the returned image: always 'jpeg'. | |
| height | Yes | Height in pixels of the returned image. | |
| summary | Yes | One line saying what happened. | |
| downscaled | Yes | Whether the returned image was shrunk to save tokens. | |
| full_width | Yes | Width in pixels of the full-resolution capture. | |
| full_height | Yes | Height in pixels of the full-resolution capture. |