compare
Compare this tab with a Figma frame (rendered by the Figma file open in another Dea tab; API only as fallback). Sizes the tab to the frame itself, waits for the page to stop moving, hides dev overlays and scrollbars for the capture. Returns elements: how far each design text and the box around it is off on the page (e.g. Continue (its box): dy +8, dh +3), biggest first: fix from these. Also the reference beside the page with changed pixels in red, and pixel counts. mode:'layout' ignores colours (a store theme on a brand design).
Example#
Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.
{
"frame": {
"file_url": "https://www.figma.com/design/FILE_KEY/Design",
"id": "1:2"
}
}Usage notes#
Replace the illustrative URL and frame ID. The app route and editable Figma file must be available in Dea. This frame argument is a Figma object, not an iframe selector.
Result#
Returns measured element differences, pixel comparison counts, and a comparison image. It can report that the page remained unsettled.
Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
frame | object | Yes | See usage and full schema below. |
dir | string | No | See usage and full schema below. |
mode | "pixels" / "layout" | No | 'layout': compare where things are drawn, ignoring colour |
mask | array of string | No | CSS selectors to hide for the capture (chat widgets, banners) maxItems: 30 |
keep_viewport | boolean | No | Keep the current viewport instead of sizing the tab to the frame |
tab | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |
Full input schema#
The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"frame": {
"type": "object",
"properties": {
"file_url": {
"type": "string",
"format": "uri"
},
"id": {
"type": "string"
}
},
"required": [
"file_url",
"id"
],
"additionalProperties": false
},
"dir": {
"type": "string"
},
"mode": {
"description": "'layout': compare where things are drawn, ignoring colour",
"type": "string",
"enum": [
"pixels",
"layout"
]
},
"mask": {
"description": "CSS selectors to hide for the capture (chat widgets, banners)",
"maxItems": 30,
"type": "array",
"items": {
"type": "string"
}
},
"keep_viewport": {
"description": "Keep the current viewport instead of sizing the tab to the frame",
"type": "boolean"
},
"tab": {
"description": "Tab name or id in your workspace; does not change the visible tab.",
"type": "string",
"minLength": 1
}
},
"required": [
"frame"
],
"additionalProperties": false
}Related documentation#
Reference conventions · Agent operating guide · Troubleshooting