browser_screenshotElement
Capture a screenshot of a specific element on a webpage using a CSS selector, with optional auto-scroll into view.
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": {
"selector": "<selector>"
},
"name": "browser_screenshotElement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | 元素的 CSS 选择器 | |
| scrollIntoView | No | 是否先滚动到元素位置 |