Question
Copy frames between files from a plugin (or the MCP server)
Problem: Through the Figma MCP server, my AI agent can read and edit one file at a time. It can't copy frames from one file to another. When we move a screen element into its own shared file, I have to copy and paste every page by hand.
What I tried:
- Shared plugin storage (
figma.clientStorage) to carry data between files: not supported over MCP. - Rebuilding the frames in the target file from code: shapes, text and library instances come across, but image fills don't. An image's hash from the source file shows up blank in the target file.
- Community plugins: they still need a person clicking in the app, so they're no faster than copy and paste.
What would help, any of these:
- A Plugin API / MCP call to copy nodes from another file the user can access, e.g.
importNodesFromFileAsync(fileKey, nodeIds). - A way to move or duplicate a page into another file.
- Image hashes that work across files the user has access to, so a rebuilt frame keeps its photos.
Why: we keep a design system with screens, shared elements and specs in separate files. Moving an element between files is a normal step, and today it's the one step an AI agent can't do on its own.
