figma_review
Save a visual, audit, and structure baseline for a Figma subtree, then compare the live node after edits to detect pixel and finding changes with a clear verdict.
Instructions
A reproducible iteration harness for one subtree: save a visual + audit + structure baseline, edit, then compare the live node and see exactly what changed. action "save" writes a local PNG plus the audit findings and the semantic fingerprint. "compare" re-renders, re-audits and re-inspects, diffs the pixels, and reports new/resolved/changed findings, severity deltas, size/fingerprint changes and a verdict: unchanged, changed, improved or regressed. A new error/warning or a size change is a regression; resolved problems are an improvement; a visual or structural difference without either is a neutral change. The document is never written: only local review files. Use figma_compare when the reference is a mockup rather than an earlier iteration.
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": {
"action": "<action>"
},
"name": "figma_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | compare/drop: review id; "latest" (the default) is the newest for this file | |
| dir | No | Where reviews live; defaults to ~/.local/share/opencode/figma-bridge-reviews | |
| name | No | save: a label for the id (defaults to the node name) | |
| rules | No | save: audit rules; compare always uses the baseline's rules so the delta means the same thing | |
| scale | No | save: export scale (default 1); compare: defaults to the baseline's scale | |
| action | Yes | save a baseline | compare the live node against it | list | drop local files | |
| inline | No | compare: return the heatmap as an image | |
| nodeId | No | save: node to capture (defaults to the selection); compare: defaults to the baseline's node | |
| fileKey | No | Which connected Figma file to use: its fileKey (figma_whoami) or, when omitted, the only connected file. Required once more than one file is connected; figma_ping lists them. | |
| suggest | No | save: attach exact local style/variable candidates to findings | |
| maxNodes | No | save: audit node cap | |
| tolerance | No | compare: per-channel difference that still counts as equal | |
| maxFindings | No | save: findings cap | |
| includeHidden | No | save: audit hidden layers too |