figma_compare_screen
Compare a saved Figma screen with a local PNG or base64 Android/web/iOS screenshot to detect visual differences; set optional pixel regions when OS bars differ and dimensions must match.
Instructions
Compare a saved Figma screen against a local PNG/base64 from droid, web or iOS. Optional referenceRegion/actualRegion select explicit pixel rectangles for app content when OS bars differ; compared dimensions must match. Reports every crop; no automatic scaling.
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": {
"snapshotId": "<snapshotId>",
"nodeId": "<nodeId>"
},
"name": "figma_compare_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| threshold | No | ||
| actualPath | No | ||
| snapshotId | Yes | ||
| actualRegion | No | ||
| maxDiffRatio | No | ||
| actualPngBase64 | No | ||
| referenceRegion | No |