diff_screenshot
Capture a screenshot or compare an existing PNG against a baseline, reporting whether images are identical and their byte similarity.
Instructions
Capture (or compare) a screenshot against a baseline PNG; reports identical + byte similarity
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": {
"baselinePath": "<baselinePath>"
},
"name": "diff_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | ||
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. | |
| currentPath | No | Existing PNG to compare; if omitted, captures fresh | |
| baselinePath | Yes |