How Figma Keeps Its AI Agents From Going Rogue in Shared Files
Figma published a detailed look at how it secures its multiplayer agent platform. For designers building real products with AI tools like Figma Make, understanding what guardrails exist matters more than you might think.
Figma has published a detailed engineering breakdown of how it secures AI agents working inside shared, multiplayer files. This matters right now because Figma Make, its prompt-to-app builder, is out of beta and available to everyone, which means agents are no longer a preview feature; they are live, in your files, acting on your behalf.
What is actually happening inside a multiplayer agent session
When you open a Figma Make file with a collaborator, you are both potentially running agents at the same time, on the same canvas. Each agent can generate and execute code, call external tools through MCP servers (a standard way for AI tools to connect to outside services), and modify shared assets. That is genuinely powerful. It is also a surface area with real risk.
Figma identifies two specific threats worth knowing about. The first is a misaligned agent: one that makes a mistake, hits a bug, or gets manipulated through "prompt injection" (where crafted content in a file tricks an agent into doing something unintended) and ends up doing something harmful, like leaking a file to a public server. The second is a malicious collaborator who tries to use shared file content as a bridge to reach another editor's credentials or connected tools.
Neither of these is a theoretical edge case. They are the natural consequence of giving software agents real authority in a collaborative environment.
The actual mechanism: FigJWTs and least privilege
Figma's solution centers on a custom credential called a FigJWT. Think of it as a tightly scoped permission slip, issued fresh for each agent prompt, that says exactly who the agent is acting for, which file it can touch, and which specific operations it is allowed to run. The agent's sandbox never sees your actual Figma credentials, your model provider API keys, or your MCP OAuth tokens. Every request the agent makes gets validated against that token before anything happens.
What makes this more than a standard security story is what Figma did when they found that tokens had drifted toward being too permissive over time. They instrumented their services to log which capabilities each token actually used in practice, then used that data to narrow permissions. A sandbox that only needs to build cached previews no longer gets the ability to call AI inference endpoints. The principle here is "least privilege": give a process only what it genuinely needs, nothing more.
For designers, this is reassuring in a specific way. The agent in your file is not a free-ranging process with keys to everything. Its authority is narrow by design, and that design is enforced outside the sandbox itself, so even a buggy or manipulated agent cannot simply grant itself more access.
What this means if you are building with AI in Figma
If you are using Figma Make to prototype or ship vibe-coded projects, a few things follow from this architecture worth keeping in mind.
Connected tools are per-editor, not per-file. Because each editor gets their own isolated sandbox, any MCP tools you have connected (say, a GitHub integration or a CMS) are yours alone. A collaborator's agent cannot reach your tools, and yours cannot reach theirs. That isolation is deliberate and enforced at the infrastructure level.
Prompt injection is a real risk, not a footnote. Figma names it explicitly as a threat. If you are collaborating on a file with people you do not fully trust, be aware that content in the file could potentially influence agent behavior in unexpected ways. This is not unique to Figma; it is a known class of problem across AI tools. The practical takeaway is to treat agent actions in sensitive files the way you would treat any shared script: review what actually happened before shipping.
Token scoping limits blast radius. If something does go wrong, the FigJWT architecture means the damage is bounded. An agent working on a Make prototype cannot suddenly start modifying your entire Figma organization or calling arbitrary external APIs. That ceiling exists whether or not you think about it.
What we still do not know
Figma's post is an engineering deep dive, not a user-facing safety guide, so there are open questions. It is not yet clear how visible agent actions are to collaborators in real time, or whether there is an audit log designers can review after a session. The post also covers internal infrastructure; it does not describe what happens when third-party MCP servers behave unexpectedly once a tool call leaves Figma's own systems.
The architecture described is genuinely careful and more transparent than most AI tool companies have been about this layer. The honest takeaway is that Figma has thought hard about keeping agents bounded, and the specific mechanisms (scoped credentials, per-editor sandboxes, capability telemetry) are real and in production. That does not make agents foolproof, but it means the guardrails are structural, not just aspirational.
Sources
About VibeLab
VibeLab is a community for vibe coders. Discover vibe coded projects from around the globe, and post and host your own.