capture_element_screenshot
Captures a screenshot of a specific UI element selected by a CSS selector in an Electron app for visual testing and debugging.
Instructions
Take a screenshot of a specific element
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": {
"sessionId": "<sessionId>",
"selector": "<selector>"
},
"name": "capture_element_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| selector | Yes | ||
| sessionId | Yes |