Visual Diff (AI) [Pro]
visual_diffCompare the current mobile screen with a previous screenshot to detect changes. Provide a base64 PNG 'before' image; the tool captures the 'after' image and returns a list of changes with descriptions and regions. Verify that actions had the expected effect.
Instructions
[Pro] Compares the current screen with a previous screenshot to identify what changed. Provide a base64 PNG screenshot as the 'before' image — the tool captures the current screen as the 'after' image. Returns a list of changes with descriptions and regions. Useful for verifying that an action had the expected effect.
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": {
"device_id": "<device_id>",
"before_screenshot": "<before_screenshot>"
},
"name": "visual_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device serial ID | |
| before_screenshot | Yes | Base64-encoded PNG of the previous screen state to compare against |