webshot
Capture screenshots of web pages with customizable dimensions, device types, and image formats. Save screenshots to specified file paths for documentation, testing, or visual reference purposes.
Instructions
生成网页截图
Input Schema
Name | Required | Description | Default |
---|---|---|---|
device | No | 截图设备类型 | desktop |
dpi_scale | No | DPI 缩放比例 | |
format | No | 截图文件格式 | png |
height | No | 浏览器窗口高度,0表示全页面截图 | |
output | Yes | 截图文件保存路径,比如: /path/to/screenshot.png | |
quality | No | 图片质量(仅对 jpeg 和 webp 有效) | |
url | Yes | 要截图的网页 URL,比如: https://www.baidu.com | |
width | No | 浏览器窗口宽度 |
Input Schema (JSON Schema)
{
"properties": {
"device": {
"default": "desktop",
"description": "截图设备类型",
"enum": [
"desktop",
"mobile",
"tablet"
],
"type": "string"
},
"dpi_scale": {
"default": 2,
"description": "DPI 缩放比例",
"type": "number"
},
"format": {
"default": "png",
"description": "截图文件格式",
"enum": [
"png",
"jpeg",
"webp"
],
"type": "string"
},
"height": {
"default": 768,
"description": "浏览器窗口高度,0表示全页面截图",
"type": "integer"
},
"output": {
"description": "截图文件保存路径,比如: /path/to/screenshot.png",
"type": "string"
},
"quality": {
"default": 100,
"description": "图片质量(仅对 jpeg 和 webp 有效)",
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"url": {
"description": "要截图的网页 URL,比如: https://www.baidu.com",
"type": "string"
},
"width": {
"default": 1280,
"description": "浏览器窗口宽度",
"type": "integer"
}
},
"required": [
"url",
"output"
],
"type": "object"
}