capture_screenshot
Capture full-page screenshots of webpages with customizable viewport settings, wait conditions, and device presets for accurate, responsive visual captures.
Instructions
Capture a full-page screenshot of a webpage with advanced options
Input Schema
Name | Required | Description | Default |
---|---|---|---|
delay | No | Additional delay in milliseconds before taking screenshot | |
standardDelay | No | Whether to apply standard 2.5s delay after networkidle2 for better stability | |
url | Yes | The URL of the webpage to screenshot | |
viewport | No | Viewport configuration | |
waitFor | No | Wait condition before taking screenshot | |
waitUntil | No | When to consider navigation complete | networkidle2 |
Input Schema (JSON Schema)
{
"properties": {
"delay": {
"description": "Additional delay in milliseconds before taking screenshot",
"type": "number"
},
"standardDelay": {
"default": true,
"description": "Whether to apply standard 2.5s delay after networkidle2 for better stability",
"type": "boolean"
},
"url": {
"description": "The URL of the webpage to screenshot",
"type": "string"
},
"viewport": {
"description": "Viewport configuration",
"properties": {
"deviceScaleFactor": {
"description": "Device scale factor",
"maximum": 3,
"minimum": 0.1,
"type": "number"
},
"hasTouch": {
"description": "Whether device has touch support",
"type": "boolean"
},
"height": {
"description": "Viewport height in pixels",
"maximum": 5000,
"minimum": 100,
"type": "number"
},
"isMobile": {
"description": "Whether to emulate mobile device",
"type": "boolean"
},
"preset": {
"description": "Device preset (mobile, tablet, desktop)",
"enum": [
"mobile",
"tablet",
"desktop"
],
"type": "string"
},
"width": {
"description": "Viewport width in pixels",
"maximum": 5000,
"minimum": 100,
"type": "number"
}
},
"type": "object"
},
"waitFor": {
"description": "Wait condition before taking screenshot",
"properties": {
"idleTime": {
"default": 2000,
"description": "Network idle time in milliseconds (for networkidle type)",
"type": "number"
},
"timeout": {
"default": 10000,
"description": "Timeout for wait condition in milliseconds",
"type": "number"
},
"type": {
"description": "Type of wait condition",
"enum": [
"selector",
"function",
"timeout",
"networkidle"
],
"type": "string"
},
"value": {
"description": "Value for wait condition (selector, function, timeout in ms, or idle time for networkidle)",
"type": "string"
}
},
"type": "object"
},
"waitUntil": {
"default": "networkidle2",
"description": "When to consider navigation complete",
"enum": [
"load",
"domcontentloaded",
"networkidle0",
"networkidle2"
],
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}