Dea DardanicaDocumentation
Figma and designRead Markdown

design_map

The project's design map: which Figma screen is which page and source files of the app, what is built, missing, or changed in Figma since it was built. Saved in the project (.dea/design-map.json and .md), or with outside:true in Dea's own folder, so it is there in every later session. Read it before building UI from Figma; write to it after. action get (default): the map, one row per screen; filter with status and query. action sync: re-read the Figma file open in a Dea tab; new frames become missing, deleted ones are flagged, built screens whose design moved become changed (with what changed). It never alters what agents recorded. action set: record a screen: frame plus url/route, files, status, notes (or screens:[...] for several). status built stores the design's current fingerprint, so later design changes show as changed.

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.

json
{
  "action": "get"
}

Usage notes#

Read before building and record the route and files afterward. outside:true keeps the map outside the project repo.

Result#

Reads, syncs, or updates the map linking Figma screens to app routes and source files. Sync can flag changed/removed screens; set records implementation status.

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#

design_map — table 1
ParameterTypeRequiredDescription
outsidebooleanNoKeep this project's map in Dea's own folder instead of <project>/.dea (nothing in the repo). Sticks for later calls.
action"get" / "sync" / "set"NoDefault get
framestringNoFigma frame id (1:13 or 1-13) or exact frame name minLength: 1
urlstringNoAddress of the page that implements it; alone (no frame) it records a page of the app that has no Figma screen
routestringNoRoute in the app, like /login
filesarray of stringNoSource files that build it (replaces the list)
componentstringNoSee usage and full schema below.
statusstring or array of stringNoset: built, check, missing or ignored. get: only these statuses (built, changed, check, missing, ignored, removed, ours_only)
notesstringNoSee usage and full schema below.
project_dirstringNoYour app's folder; defaults to the current Dea project
filestringNoFigma file URL or key, when the map has several
querystringNoget: words that must appear in a screen's name, page, route, files or notes
limitintegerNoget: most screens returned (default 200) minimum: 1; maximum: 1000
screensarray of objectNoset: several screens in one call maxItems: 200
tabstringNoTab 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.

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "outside": {
      "description": "Keep this project's map in Dea's own folder instead of <project>/.dea (nothing in the repo). Sticks for later calls.",
      "type": "boolean"
    },
    "action": {
      "description": "Default get",
      "type": "string",
      "enum": [
        "get",
        "sync",
        "set"
      ]
    },
    "frame": {
      "description": "Figma frame id (1:13 or 1-13) or exact frame name",
      "type": "string",
      "minLength": 1
    },
    "url": {
      "description": "Address of the page that implements it; alone (no frame) it records a page of the app that has no Figma screen",
      "type": "string"
    },
    "route": {
      "description": "Route in the app, like /login",
      "type": "string"
    },
    "files": {
      "description": "Source files that build it (replaces the list)",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "component": {
      "type": "string"
    },
    "status": {
      "description": "set: built, check, missing or ignored. get: only these statuses (built, changed, check, missing, ignored, removed, ours_only)",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "notes": {
      "type": "string"
    },
    "project_dir": {
      "description": "Your app's folder; defaults to the current Dea project",
      "type": "string"
    },
    "file": {
      "description": "Figma file URL or key, when the map has several",
      "type": "string"
    },
    "query": {
      "description": "get: words that must appear in a screen's name, page, route, files or notes",
      "type": "string"
    },
    "limit": {
      "description": "get: most screens returned (default 200)",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "screens": {
      "description": "set: several screens in one call",
      "maxItems": 200,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "frame": {
            "description": "Figma frame id (1:13 or 1-13) or exact frame name",
            "type": "string",
            "minLength": 1
          },
          "url": {
            "description": "Address of the page that implements it; alone (no frame) it records a page of the app that has no Figma screen",
            "type": "string"
          },
          "route": {
            "description": "Route in the app, like /login",
            "type": "string"
          },
          "files": {
            "description": "Source files that build it (replaces the list)",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "component": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "built",
              "check",
              "missing",
              "ignored"
            ]
          },
          "notes": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "additionalProperties": false
}

Reference conventions · Agent operating guide · Troubleshooting