截图
web_screenshotCapture the current viewport, full page, or a specific element as a PNG/JPEG image, returned as MCP content or saved locally for visual confirmation.
Instructions
截取当前页面(视口或整页)或指定元素的图像,作为 MCP image 内容返回;可同时保存到本地文件。适合需要视觉确认的场合;日常结构化观察请优先使用 web_snapshot。
权限说明:只读页面内容;若提供 save_to 参数会向本地文件系统写入文件(路径由调用方指定)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 图像格式,默认 png | |
| quality | No | jpeg 质量 0-100,默认 90 | |
| save_to | No | 同时保存到本地文件路径 | |
| timeout | No | 超时毫秒数,默认 10 秒,0 表示不限制 | |
| selector | No | 只截取该选择器命中的元素 | |
| full_page | No | 截取整页而非视口,默认 false |