figma_compare
Compare existing Figma component screenshots with current renders and generate a diff.png to pinpoint visual differences.
Instructions
Simple Figma component comparison tool: compare existing screenshots and generate diff.png for visual analysis
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": {
"componentName": "<componentName>"
},
"name": "figma_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | Comparison threshold (0-1, lower is more strict) | |
| outputPath | No | Custom output directory for results (optional). If not provided, defaults to src/components/{componentName}/results | |
| projectPath | No | Path to the Vue project | /Users/yujie_wu/Documents/work/camscanner-cloud-vue3 |
| componentName | Yes | Name of the component to compare |