In Practice
Figma to Code
Give the agent a Figma frame link. It reads the design file and builds the screen on a branch. Use the live preview to compare the implementation with the frame.
What you need
- A connected repository: the code the screen gets built into. See Codebase & Preview Setup.
- Figma reachable from the stack: connect the Figma MCP app, so agents read frames, components, and variables rather than guessing from an image.
- A working preview: how you check the built screen against the frame without pulling the branch.
Connect Figma once per workspace
Use the Figma app from the MCP catalog. The connection is workspace-level, and each stack turns it on for its own agents. See MCP Connectors for detailed setup instructions.
- Connect the Figma app
In the stack's MCP tab, open All apps, find Figma, and click Connect. Complete Figma's sign-in. Composio stores the grant and refreshes it for you.
- Turn it on for the stack
In the Connected view, turn on the Figma toggle for each stack whose agents build from designs. Agents pick the tools up at their next launch.
Turn a frame into a task
- Copy the frame link
Select the frame in Figma and copy its link. A frame-specific URL has a
node-idparameter. A whole-file link has none, so the agent must guess which screen you meant. - Write the task around it
Paste the link into the task description and explain what to do with it. Specify the route and the components to reuse, for example "Implement this settings page at
/settings/notifications, reusing our existing form components." The design file describes the screen's appearance. Your instructions tell the agent where it belongs in the codebase. - Launch the agent
Click Launch Agent. The agent fetches the frame, builds the screen on its branch, and opens a pull request. Watch it work and redirect it mid-run from the task; see Steering Agents Together.
What the agent reads
Figma's tools are attached under the composio-figma server name. The agent searches them, then calls the one it needs. Use that name to find design calls in a session:
mcp__composio-figma__search_tools # finds Figma tools by name or description
mcp__composio-figma__call_tool # runs the Figma tool it foundBetween them, the agent can pull:
- Layout: the frame's structure, sizes, spacing, and alignment.
- Styling: colors, typography, radii, and the variables behind them.
- Text: the real copy in the frame, not an approximation of it.
- Component names: names the agent uses to match design components to existing components in your code.
- A rendered image: the frame as a picture, for anything the data misses.
Check it against the frame
- Open the preview: the branch runs in a cloud copy of your product, so you can put the real screen next to the frame. See Agents & Previews.
- Read the Verification section: the agent captures screenshots of the UI it touched. They appear in the Review Hub and are mirrored to a comment on the pull request. See Reviewing a Change from Screenshots.
- Send the differences back: message the agent in its session with what is off and it fixes it on the same branch. An engineer merges from the Review Hub; see Review & Merge.
Check the link is frame-specific (it has a node-id), then check that the
Figma app is connected and turned on for the stack in its MCP tab. If both are
fine, the frame was probably doing too much: one screen per task lands closer than one task
carrying a whole flow.
Related
- MCP Connectors: every connector agents can use, and how tools attach.
- Tasks: what goes in a task and how it moves.
- Review & Merge: previews, verification, and who merges.