getScreenshot
Capture and save screenshots of web pages or specific elements, returning file paths for easy access. Supports PNG and JPEG formats, full-page captures, and custom clipping regions to meet varied screenshot needs.
Instructions
获取页面截图并保存到临时目录,返回文件路径
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pageId": "<pageId>"
},
"name": "getScreenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | 截图区域 | |
| element | No | 元素选择器(截取特定元素) | |
| fullPage | No | 全页面截图(默认true) | |
| pageId | Yes | 页面ID | |
| quality | No | JPEG质量(默认80) | |
| type | No | 图片格式(默认png) |