amiga_screen_diff
Capture a screen or region as a baseline, then compare it later to detect visual changes, returning changed-pixel share, changed-area boxes, and a diff image.
Instructions
Visual regression test: save a picture of the screen (or a region), later compare the screen with it. compare answers the share of changed pixels, the boxes of the changed areas and a picture of them (changed pixels magenta, boxes yellow). threshold: how different a pixel must be (0-255).
machine: saved Amiga name or ID from amiga_machines; defaults to AMIGENT_HOST, the saved default, or the sole registered machine.
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": "amiga_screen_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | baseline | |
| width | No | ||
| action | No | compare | |
| height | No | ||
| machine | No | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |