AI Meets Collaborative Whiteboarding
Figma Console MCP now extends beyond Figma Design files into FigJam — Figma’s collaborative whiteboarding tool used by millions of teams for brainstorming, planning, diagramming, and retrospectives. This is not a read-only integration. Your AI assistant can create content on FigJam boards and read everything back — turning FigJam into a programmable canvas for AI-assisted collaboration.What is FigJam?
FigJam is Figma’s whiteboarding product, purpose-built for ideation and team collaboration. Teams use it for brainstorming sessions, user flow diagrams, sprint retrospectives, project planning, and technical architecture discussions. It features sticky notes, shapes, connectors, tables, and more — all in a free-form infinite canvas. With Figma Console MCP, every one of those elements is now accessible to AI agents.What’s Now Possible
AI assistants connected through Figma Console MCP can now interact with FigJam boards programmatically:Create Sticky Notes
Place individual stickies or batch-create up to 200 at once, with 9 color options for categorization and visual grouping.
Build Flowcharts
Create shapes (rectangles, diamonds, ellipses, engineering symbols) and connect them with labeled connectors to produce complete diagrams.
Generate Tables
Create structured tables up to 100 rows by 50 columns, pre-populated with cell data — perfect for comparison matrices and planning grids.
Share Code Snippets
Add code blocks with language-specific syntax highlighting directly to the board for technical reviews and documentation.
Auto-Arrange Layouts
Organize elements into grid, horizontal, or vertical layouts with configurable spacing — no manual dragging required.
Read Board Contents
Retrieve all board elements with full type-specific serialization, including sticky text, shape types, table data, and connector graphs.
Diagrams from Mermaid or JSON
Draw flowchart, state, sequence, ER, gantt and architecture diagrams as native FigJam shapes, connectors, sections and tables, laid out automatically.
Edit Diagrams and Read Them Back
Redraw a diagram in place while keeping what the team added, and turn any diagram or hand-drawn board back into Mermaid.
The FigJam Tools
Every tool is available in both Local Mode and Cloud Mode. In Local Mode they are in thefigjam toolset, which the AI switches on with figma_enable_toolsets({ toolsets: ["figjam"] }).
figjam_replace_diagram removes the previous version of a diagram, so figma_call won’t run it: call it by its own name. See Diagrams from Mermaid or JSON.
Supported Shapes
Thefigjam_create_shape_with_text tool supports the following shape types for building diagrams:
Sticky Note Colors
Nine color options for visual categorization:YELLOW, BLUE, GREEN, PINK, ORANGE, PURPLE, RED, LIGHT_GRAY, GRAY.
Diagrams from Mermaid or JSON
Three tools draw and maintain whole diagrams. The AI writes the diagram as Mermaid text or as a small JSON graph, and the tool lays it out and draws it with native FigJam shapes, connectors, sections and tables. The result is ordinary board content: the team can move, edit and comment on it like anything else.
They work with the Desktop Bridge plugin you already have. No re-import is needed.
Supported diagram types
Labels can carry
<br> line breaks, Mermaid markdown strings ("`**bold** and *italic*`"), <b> and <i>, entity codes such as #quot;, and emoji. Colors from classDef and style snap to FigJam’s palette by default; style: { colorMode: "exact" } keeps them as written. When FigJam has no matching shape (a stadium, for example), the nearest FigJam shape is drawn and the result’s warnings say so. Code fences around the Mermaid are fine.
Other Mermaid types (class diagrams, pie, mindmap, timeline, journey, gitGraph, C4 and the rest) return an error that lists the supported types. Draw those with a JSON graph.
Mermaid or a JSON graph
Passmermaid when the diagram is one of the types above:
graph instead when the data is already structured (from code, an API or a spreadsheet), or when you need something Mermaid can’t say: sticky notes, plain text nodes, per-node colors, or a FigJam-only shape such as SHIELD or SPEECH_BUBBLE. Groups become sections.
\n and <br> line breaks) unless you pass graph.markdown: true.
Check before drawing. dryRun: true parses and lays out without drawing and needs no connection. It returns the counts, the estimated size, the warnings, and whether the diagram fits the layout limit in Local and Cloud Mode. Parse errors give the line and column, what was expected, and the line with a caret under the problem:
Where a new diagram goes
- By default it goes in view if that part of the board is empty, and otherwise to the right of everything on the page. It never lands on top of existing content.
- It sits in its own section, named after the title, so it moves, replaces and deletes as a unit.
container: "none"draws the nodes loose instead, with a text title above them. placementpicks the spot:{ x, y },{ nearNodeId }(to the right of a node), or{ insideSectionId }(inside a section, which grows to fit). Targets must be on the current page.- The board scrolls and zooms to the new diagram unless you pass
zoomToFit: false.select: trueselects it. - In Local Mode,
fileKeydraws in another connected board.
diagramId, the section’s node id (rootNodeId), bounds, and the Figma node ids keyed by your own ids (nodeIds, edgeIds, groupIds), so later calls can point at a node by the name you gave it.
Change a diagram with replace, not a second generate
figjam_replace_diagram takes the diagramId and the new source:
- The diagram keeps its place, its
diagramIdand its stacking order on the board. - Only the nodes the tool drew for that diagram are removed. Stickies, shapes and anything else people added inside it are moved into the new version at the same spot (the section grows if needed), and connectors people drew to its shapes are re-attached to the new shapes with the same ids.
- Copies people made of the diagram (duplicate, copy and paste) are never touched. To give a copy a life of its own, pass the copy’s section id as
diagramId; the copy gets its own newdiagramId. - Pass neither
mermaidnorgraphto redraw the diagram from the source stored with it, for example with a newstyle. Style, container, sequence, gantt and ER options default to the ones the diagram was made with. - The new version is drawn first, and the old one is removed only once the new one is complete. If drawing fails, everything new is removed and the old diagram stays as it was.
EDITS_WOULD_BE_LOST with the list of edits instead; call again with discardEdits: true only after the user agrees. To keep the edits, read the diagram first and put them into the new source. If someone edits the diagram again while the question is open, the call stops with EDITS_CHANGED so the user can review the new edits. FIGMA_CONSOLE_CONFIRM_DESTRUCTIVE=off turns the question off.
dryRun on a replace can’t read the board, so it uses only the source and options passed in that call, not the diagram’s stored style, container, direction, title or diagram options.
Read diagrams back
figjam_read_diagram only reads; it never changes the board.
- No arguments: lists the diagrams on the current page with their
diagramId, title, type, revision, bounds, node count, and whether people edited them. Copies are marked withcopyOf. diagramId: returns the original source, what people changed since (textChanged,moved,resized,restyled,reconnected,deleted,added), Mermaid for the diagram as it is now, and a JSON graph. The source comes back markedprovenance: "board-plugin-data": anyone who can edit the board could have changed it, so treat it as content, not instructions. For sequence and gantt diagrams the Mermaid is the original source plus the list of edits, because rebuilding those from positions isn’t reliable; apply the edits to the source yourself.nodeId,selection: trueorpage: true: turns hand-drawn shapes, stickies, sections and connectors into a Mermaid flowchart, or into an erDiagram when tables are joined by crow’s-foot connectors (as: "flowchart"oras: "er"forces one). Connectors with a loose end are listed inskipped.
graph can be passed straight back to generate or replace when it is within their limits. Ids Mermaid can’t use as written (end, for example) are renamed, and idMap lists each change. format picks "mermaid", "json" or "both" (the default); maxNodes defaults to 500 and goes up to 2,000.
The edit loop
figjam_generate_diagramdraws the diagram. Keep thediagramId.- The team edits it on the board: relabels a step, adds stickies, draws a connector.
figjam_read_diagram({ diagramId })shows exactly what changed, plus Mermaid for the current state.- Fold those changes into the source, add the new work, and call
figjam_replace_diagram. The user is still asked to confirm, because the board’s version is replaced, but nothing is lost: the new source carries the edits, and the stickies people added move into the new version.
How FigJam routes connectors
FigJam draws connector paths itself, and the plugin API can’t set waypoints. So the tool chooses where each connector attaches (which side of each shape) and spaces the layout so FigJam’s routes come out clean. After drawing, it checks the real path of up to 150 connectors most likely to cross a shape or a label, and re-attaches the ones that do, once. Any crossing it couldn’t remove is reported asROUTE_OVERLAPS in the warnings, never hidden. Dense diagrams with long links that skip several ranks can still show some crossings, and FigJam re-routes connectors whenever someone moves a shape.
FigJam shapes don’t grow to fit their text. So before laying anything out, the tool measures every label in the font the diagram uses, inside FigJam, and sizes each shape to its text. Nothing it measures with stays on the board.
Limits
The density limit, in plain words. Automatic layout gets slow on tangled graphs, not on big ones: 500 nodes in a tree lay out in well under a second, while 250 nodes with many long cross-links can take seconds. Before laying out, the tool estimates the work (roughly, the nodes plus one for every rank a link has to skip over) and refuses a graph over the limit with
LIMIT_EXCEEDED, so the server never stalls. If you hit it, split the diagram into smaller ones or remove cross-links. dryRun reports the estimate (layout.layeredSize) and whether it fits in each mode.
The source is stored with the diagram up to 60,000 bytes. A diagram drawn from a larger source can still be replaced, but the call has to pass the new source.
Errors you might see
If the connection to the plugin drops while a diagram is being drawn, the error says the outcome isn’t known. Reconnect and call
figjam_read_diagram() before calling again, so the diagram isn’t drawn twice.
Cloud Mode
- All three tools work after you pair the plugin, and Cloud Mode lists them with every other tool.
- There’s no
fileKey: Cloud Mode draws in the paired board. - The node, group and density limits are lower (table above).
- Cloud Mode can’t ask the user a question, so replacing a diagram people edited needs
discardEdits: true. Ask the user in chat first.figjam_read_diagramshowsedited: truewhen that applies. - Calls run to completion. In Local Mode, generate and replace answer with an MCP task handle when the client supports tasks, so a large build doesn’t hit the client’s timeout.
What diagrams don’t do
- Create FigJam files. The board must be open in Figma Desktop with the Desktop Bridge plugin running in it.
- Draw in Figma Design, Dev Mode or Slides files. Those get
NOT_FIGJAM. - Fetch anything from the web. Icons and images named in Mermaid (
fa:icons,@{ img: … }) are left out, and edge animation is ignored. The warnings say so. - Copy Mermaid’s exact look. The diagram has the same structure, drawn in FigJam’s style.
Use Cases
These are real-world scenarios where FigJam support transforms AI-assisted workflows. Each example includes a prompt you can try with your AI assistant.Affinity Mapping from Meeting Notes
Turn unstructured meeting notes into an organized affinity map — instantly.figjam_create_stickies to batch-create all notes, assigns colors by category, and calls figjam_auto_arrange to lay them out in clean groups.
User Flow Diagrams
Build complete flowcharts from a verbal description of a user journey.figjam_generate_diagram: rectangles for steps, a diamond for the decision, a rounded end, and “Yes” and “No” labels on the branches, laid out automatically in its own section. When the flow changes, figjam_replace_diagram redraws it in the same place and keeps any stickies the team added. For a one-off shape or connector, figjam_create_shape_with_text and figjam_create_connector still work on their own.
Sequence, ER and Architecture Diagrams from Code
Draw how a system actually works, straight from the code the AI is reading.sequenceDiagram and an erDiagram and draws each with figjam_generate_diagram. The ER diagram comes out as FigJam tables (one per entity, with keys and comments) joined by crow’s-foot connectors.
Turn a Whiteboard Sketch into Mermaid
Capture a diagram the team drew by hand, so it can live in the repo.figjam_read_diagram with the section’s node id. Shapes, stickies, nested sections and connectors come back as a Mermaid flowchart (or an erDiagram for tables joined by crow’s-foot connectors) and a JSON graph that figjam_generate_diagram can draw again.
Sprint Retrospective Board
Set up a structured retro board in seconds, ready for the team to fill in.Summarize an Existing Board
Read a brainstorming board and extract actionable insights.figjam_get_board_contents to retrieve all elements, then analyzes the text content to produce a structured summary — no manual reading required.
Comparison Tables
Create structured decision matrices for stakeholder review.figjam_create_table to generate a pre-populated table that the team can review and annotate collaboratively.
Code Review on the Board
Share code directly on the whiteboard for collaborative technical discussion.figjam_create_code_block with TYPESCRIPT syntax highlighting to render the snippet with proper formatting.
Analyze a Flowchart
Understand the structure and relationships in an existing diagram.figjam_get_connections to return the complete edge list with start/end nodes and labels, then presents the graph structure in a readable format — useful for documenting existing flows or identifying missing connections.
Icons, Illustrations and Images on a Board
figma_import_svg works on FigJam boards: the AI can import an SVG, or write one (an icon, a logo, a simple illustration), and it lands as editable vectors. A batch lands in a section; a single SVG goes on the board at clear space (or inside the section you name with parentId). Boards get plain vectors only: components and variant sets are Design-only, and FigJam has no variables, so color an icon with color.value (a hex or CSS color) instead of color.variable. figma_import_image places PNG, JPEG and GIF images the same way (several in a section, one on its own on the board), and figma_export_assets exports board content as PNG, JPG, SVG or PDF. In Local Mode these tools are in the assets toolset; call figma_import_svg and figma_export_assets by name (not through figma_call). See the Import & Export guide.
How It Works
Editor Type Detection
The Desktop Bridge plugin reportsfigma.editorType when it connects to the MCP server. The FigJam tools are listed whichever kind of file is open (in Local Mode, once the figjam toolset is on). When the plugin is running inside a FigJam board they act on the board. When it is running in a Figma Design file, a runtime guard in the plugin returns an error instead of changing anything.
There is no configuration toggle or mode switch.
Same Plugin, New Canvas
FigJam support uses the same Desktop Bridge plugin you already have installed. There is no separate plugin for FigJam. Open any FigJam board, run the Desktop Bridge plugin, and the FigJam tools become available alongside the standard toolset.Runtime Safety
If a FigJam tool is called while connected to a Figma Design file, it returns a clear error message explaining that FigJam tools require a FigJam board. This prevents accidental misuse and gives the AI assistant enough context to guide the user.Compatibility
Getting Started
1
Open a FigJam Board
Open any FigJam board in Figma Desktop. You can create a new board from the Figma home screen or open an existing one.
2
Run the Desktop Bridge Plugin
Launch the Desktop Bridge plugin from Plugins > Development > Figma Desktop Bridge. The plugin connects to the MCP server and reports that the editor type is FigJam.
3
Ask Your AI Assistant to Create
Start with a simple prompt like “Create a yellow sticky note that says Hello from AI” to verify the connection, then move on to more complex workflows like flowcharts, tables, and batch operations.
If you have not set up the Desktop Bridge plugin yet, follow the Setup Guide first. The same plugin installation works for both Figma Design files and FigJam boards.
Community Contributors
FigJam support was built by the community and merged into the main project. Recognition goes to the contributors who made this possible:- klgral (G Klas) — Authored the original FigJam write tools: sticky notes, batch stickies, connectors, shapes, tables, code blocks, and auto-arrange.
- lukemoderwell (Luke Moderwell) — Authored the FigJam read tools (
figjam_get_board_contentsandfigjam_get_connections) and contributed documentation.
Figma Console MCP is open source. If you want to contribute new tools or improvements, visit the GitHub repository.