captureSnapshot
Capture a full-page snapshot of a webpage, including scrolling, waiting, and automatic trimming, to reduce HTML token usage and enable efficient web interactions.
Instructions
捕获网页的完整快照,支持滚动、等待和自动修剪功能
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageDescription | No | 页面描述(默认'Auto snapshot page') | |
pageName | No | 页面名称(默认'snapshot') | |
scrollDelay | No | 滚动间隔时间(毫秒,默认5000) | |
scrolls | No | 滚动次数(默认1) | |
trim | No | 是否修剪重复内容(默认true) | |
url | Yes | 要捕获的网页URL | |
wait | No | 初始等待时间(毫秒,默认5000) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"pageDescription": {
"description": "页面描述(默认'Auto snapshot page')",
"type": "string"
},
"pageName": {
"description": "页面名称(默认'snapshot')",
"type": "string"
},
"scrollDelay": {
"description": "滚动间隔时间(毫秒,默认5000)",
"type": "number"
},
"scrolls": {
"description": "滚动次数(默认1)",
"type": "number"
},
"trim": {
"description": "是否修剪重复内容(默认true)",
"type": "boolean"
},
"url": {
"description": "要捕获的网页URL",
"type": "string"
},
"wait": {
"description": "初始等待时间(毫秒,默认5000)",
"type": "number"
}
},
"required": [
"url"
],
"type": "object"
}