capture_diff
Compare two base64-encoded images to calculate the visual difference percentage, enabling automated visual regression checks for mobile UI testing.
Instructions
Compare two base64 images and return diff percentage.
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": {
"baselineBase64": "<baselineBase64>",
"currentBase64": "<currentBase64>"
},
"name": "capture_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currentBase64 | Yes | ||
| baselineBase64 | Yes |