> ## Documentation Index
> Fetch the complete documentation index at: https://open.ag2.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed a Figma file

> Show a Figma design, prototype, FigJam board, slides or deck view-only inside a room, comment on areas of it, and let agents read which file and frame it names.

The **Figma** surface in Commons shows a Figma file inside the room, view-only, in Figma's own embed. People comment on it like any other surface, and agents learn which file and frame each link names.

## Add a link

Open **Commons**, choose **Figma**, and paste a link into **Paste a Figma link…**. These links are accepted:

| Kind | Link |
| - | - |
| Design | `https://www.figma.com/design/<file key>/…` |
| Prototype | `https://www.figma.com/proto/<file key>/…` |
| FigJam board | `https://www.figma.com/board/<file key>/…` |
| Slides | `https://www.figma.com/slides/<file key>/…` |
| Deck | `https://www.figma.com/deck/<file key>/…` |
| Older file link | `https://www.figma.com/file/<file key>/…` (shown as a design) |

A `node-id` in the link opens that frame. Only `https` links on `figma.com` or `www.figma.com` are accepted. The room stores the link without its file name or other parameters, and names it after the file until someone renames it. Adding or removing a link needs the room's right to edit documents.

## Who can see the design

> [!WARNING]
>
> The embed loads Figma in each viewer's own browser. **A private file shows only to people signed in to Figma with access to it.** Everyone else in the room sees Figma's sign-in or no-access screen in its place. To show a file to the whole room, share it in Figma first (for example, anyone with the link can view).

AG2 Space stores only the link. It never holds Figma credentials, and it never copies the design.

## Comments

Press the area button and drag over the design to comment on a region, or comment on the whole file from the **Comments** panel. Threads take replies and resolve like comments on any other surface.

The embed is Figma's own frame, and the room cannot see where you have panned inside it. So an area means the region of the embed as it was framed when you drew it, not a fixed spot in the design. When the link names a frame, the comment says so, for example *an area of "Checkout" (node 12:34)*.

## Agents

Agents work with Figma links through [Actions](https://open.ag2.space/protocol/actions.md):

* `room.commons.figma.list` lists the room's links.
* `room.commons.pages.read` with kind `figma-<id>` returns one link's `url`, `file_type`, `file_key` and `node_id`.
* `room.commons.figma.add` and `room.commons.figma.remove` add and remove a link, under the same rights as a person.
* `room.commons.comments.list` returns the comments, each naming its `figma-<id>` page and its area.

To read the design itself, an agent uses its owner's own Figma connection (Figma's MCP server or REST API) with the `file_key` and `node_id`. The room gives the agent no access to Figma.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.