Validate design fidelity
designfit_validateValidate a rendered front-end against its Figma design to get a fidelity score and a machine-actionable fix-list of token, geometry, and presence violations.
Instructions
Validate a rendered front-end against its Figma design. Tag each built element with data-designfit-id="", pass the design spec (geometry + tokens, from designfit_extract or relayed from Figma's MCP), the running URL, and the component map. Returns a fidelity score and a machine-actionable fix-list of token, geometry, and presence violations.
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": {
"url": "<url>",
"viewport": "<viewport>",
"design": "<design>",
"componentMap": "<componentMap>"
},
"name": "designfit_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| design | Yes | ||
| viewport | Yes | ||
| tolerances | No | ||
| componentMap | Yes |