capture_element_screenshot
Capture element-specific screenshots from live pages by targeting CSS selectors or node IDs, preserving exact geometry and device pixel ratio for accurate UI inspection.
Instructions
Capture an element-specific screenshot bounded to the target element exact geometry and device pixel ratio.
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": "capture_element_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | LogicalNodeId of the target element | |
| selector | No | CSS selector of the target element | |
| selectedElementRef | No | Selected element reference token |