browser_take_screenshot_element
Capture a screenshot of a specific webpage element using a CSS selector or snapshot ID, and save it as PNG or JPEG to the workspace.
Instructions
Takes a screenshot of a specific element and saves it to the workspace.
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": {
"target": "<target>"
},
"name": "browser_take_screenshot_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Image format: png or jpeg. Defaults to png. | |
| target | Yes | Selector or snapshot ID of the target element. | |
| filename | No | Optional custom filename to save the screenshot. |