A Figma frame shows how a page should look, but rarely every interaction, data source or error state. Give the agent the exact frame, the intended behavior and your codebase conventions, then check the running page and the diff yourself. The example is a pricing page with a monthly/yearly switch; the method works for forms and dashboards too.

Choose one frame and the states around it
Link to the exact pricing frame or layer, not just the file. Figma's sharing permissions control who can view, copy or export it. Before the handoff, list the desktop and narrow layouts, the selected billing option, loading and error states, and what the plan button does. If the design only has a desktop frame, write down the missing decisions rather than letting the agent guess. Don't make a private file public for an agent trial.
- Record the frame link and design version or date.
- List the copy, icons and images the agent may use.
- Pick one success behavior and one failure or empty state.
Give the agent design context it can read
The low-setup route is an exported frame, the assets, and a brief on tokens, layout, interactions and existing components. The structured route is Figma's MCP server in a supported coding CLI: it takes a frame or layer link and returns design context.
Canopy runs your installed CLIs in terminals; the Figma MCP connection and its permissions belong to that CLI and your Figma account. Check the tool call works first. Figma's output is design context, not production-ready code.
| Route | Give the agent | Check before implementation |
|---|---|---|
| Image and brief | Frame export, assets, state list, layout notes | Agent can see the image and names missing behavior |
| Figma MCP via CLI | Permitted frame link and configured MCP server | Agent retrieves the intended node and its context |
| Either route | Existing repo components and run command | Agent names what it will reuse and starts the real app |
Map design components to existing code
Ask the agent to inspect the repository's buttons, cards, type, spacing and responsive patterns before it creates anything. Figma recommends semantic layer names, components, variables, Auto Layout and annotations to carry intent to code tools. Code Connect, where your plan and setup include it, maps Figma components to real code. Without it, name the components to reuse and the authoritative tokens. From a screenshot alone, agents tend to approximate spacing and duplicate your button.
- Say whether the switch changes only displayed prices or also the checkout target.
- Take prices from the approved data source, never the mockup.
- Send ambiguous or inaccessible states to a person to decide.
Run the page and compare at matched conditions
Give the agent its own branch or worktree and the run command. In Canopy, start the frontend and any API from the project's services and open the URL in Preview. Compare the frame with a browser capture at the same viewport and state, then repeat at a narrow viewport and with the keyboard.
Test behavior too: Yearly should show the right price, and the next action should use that plan. Playwright supports screenshot comparison but warns that rendering varies by OS and environment, so review visible differences against a stable baseline.
- Report each mismatch with element, viewport, expected and observed state.
- Check requests or service logs when the UI depends on an API.
Review the code and close the handoff
Check the final diff for new dependencies, duplicate components, hard-coded prices, asset licenses and changes outside the page. Run the project's checks and repeat the pricing interaction after the last edit. A matching screenshot doesn't prove mobile behavior, accessibility or a working checkout. Have the agent record the frame revision, branch, changed files, tests, preview URL and open decisions. Make payments a separate, reviewed task.
- Accept against both the design and the stated behavior.
- Return missing states to the designer as decisions, not guesses.
Copyable resources
Share the frame link with scoped permissions; keep account tokens and private assets out of public prompts.
Figma frame URL and version/date: [ ]
Who can view, copy, export: [ ]
Desktop and narrow layouts: [links or exports]
States: [default], [selected], [loading/error/empty]
User action and expected result: [ ]
Copy, assets, approved data source: [ ]
Repo components and tokens to reuse: [ ]
Agent route: [image + brief / Figma MCP in named CLI]; retrieval checked: [ ]
Project, branch/worktree, run command, preview URL: [ ]
Visual checks at matched viewports: [ ]
Keyboard, responsive, success, failure checks: [ ]
Changed files, tests, final diff, open decisions: [ ]Frequently asked questions
Can I paste a Figma link into Canopy and expect every agent to read it?
No. The CLI needs Figma access and, for structured retrieval, a supported MCP connection configured in that CLI. An exported frame and brief is the other route.
Is a screenshot enough to build a working page?
It can guide layout, but you also need to specify interactions, responsive states, data and failure behavior, then check them in the running app and final diff.
Does Figma MCP output production-ready code?
No. Figma describes it as design context for an agent to translate into your framework and codebase. Review reuse, behavior, accessibility and tests.
Should I make a private Figma file public for the agent?
No. Give the person or connected CLI scoped view access. Figma's sharing settings control who can view and export; public access is a separate decision.