screenshot-page
Capture screenshots of any webpage as base64 encoded images with customizable settings like viewport size, image format, and loading conditions. Supports using saved cookies for authenticated pages.
Instructions
Captures a screenshot of a given URL and returns it as base64 encoded image. Can use saved cookies from login-and-wait.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
delay | No | Additional delay in milliseconds to wait after page load | |
format | No | Image format for the screenshot | png |
fullPage | No | Whether to capture the full page or just the viewport | |
height | No | Viewport height in pixels | |
quality | No | Quality of the image (0-100), only applicable for jpeg and webp | |
reuseAuthPage | No | Whether to use the existing authenticated page instead of creating a new one | |
url | Yes | The URL of the webpage to screenshot | |
useDefaultBrowser | No | Whether to use the system's default browser instead of Puppeteer's bundled Chromium | |
useSavedAuth | No | Whether to use saved cookies from previous login | |
visibleBrowser | No | Whether to show the browser window (non-headless mode) | |
waitFor | No | When to consider the page loaded | networkidle2 |
width | No | Viewport width in pixels |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"delay": {
"default": 0,
"description": "Additional delay in milliseconds to wait after page load",
"type": "number"
},
"format": {
"default": "png",
"description": "Image format for the screenshot",
"enum": [
"png",
"jpeg",
"webp"
],
"type": "string"
},
"fullPage": {
"default": true,
"description": "Whether to capture the full page or just the viewport",
"type": "boolean"
},
"height": {
"default": 1080,
"description": "Viewport height in pixels",
"type": "number"
},
"quality": {
"description": "Quality of the image (0-100), only applicable for jpeg and webp",
"maximum": 100,
"minimum": 0,
"type": "number"
},
"reuseAuthPage": {
"default": false,
"description": "Whether to use the existing authenticated page instead of creating a new one",
"type": "boolean"
},
"url": {
"description": "The URL of the webpage to screenshot",
"format": "uri",
"type": "string"
},
"useDefaultBrowser": {
"default": false,
"description": "Whether to use the system's default browser instead of Puppeteer's bundled Chromium",
"type": "boolean"
},
"useSavedAuth": {
"default": true,
"description": "Whether to use saved cookies from previous login",
"type": "boolean"
},
"visibleBrowser": {
"default": false,
"description": "Whether to show the browser window (non-headless mode)",
"type": "boolean"
},
"waitFor": {
"default": "networkidle2",
"description": "When to consider the page loaded",
"enum": [
"load",
"domcontentloaded",
"networkidle0",
"networkidle2"
],
"type": "string"
},
"width": {
"default": 1920,
"description": "Viewport width in pixels",
"type": "number"
}
},
"required": [
"url"
],
"type": "object"
}