screenshot
Capture web page screenshots: full page, specific elements, or visible area. Save to a file if a path is provided.
Instructions
对当前页面截图。可截全屏、指定元素,或页面可见区域。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 保存路径,如 "./screenshot.png" 或 "/tmp/screenshot.png"。为空则不保存文件。 | |
| fullPage | No | 是否截取整个页面(滚动到底部),默认 false(只截可见区域) | |
| selector | No | CSS 选择器,截取指定元素的截图。为空则截取整个页面。 |