Skip to content

[feat] get figma interaction data#290

Open
boolchow wants to merge 1 commit intoGLips:mainfrom
boolchow:feat/get-interactions-data
Open

[feat] get figma interaction data#290
boolchow wants to merge 1 commit intoGLips:mainfrom
boolchow:feat/get-interactions-data

Conversation

@boolchow
Copy link
Copy Markdown

Currently, the get_figma_data interface cannot retrieve interaction information from the Prototype, making it impossible to know the interaction information of the UI drafts. I have added logic to retrieve interaction information, allowing users to read the current UI draft information and interact with another UI draft information at the same time, enabling the creation of multiple UI drafts simultaneously.

image

@GLips
Copy link
Copy Markdown
Owner

GLips commented Mar 19, 2026

This is really nicely done, thanks for submitting it. Prototype data has been on my radar for a bit.

I think because we need to pull the full Figma file in order for this to work, I'd like to launch this in tandem with some kind of support for Figma response caching.

I'd also like to test this with extra large Figma files—I believe there's a 55 second timeout on the Figma API. I don't want to brick the MCP for all use cases with big files when we add support for prototype data. I wonder, there's a comment in the code that says:

Both /files?ids= and /files/nodes nullify interaction destinationIds when the destination falls outside the queried subtree.

Is it just that the destinationIds are set to null, but the prototype information still exists? If keep fetching the same as it currently is, what do you think about checking prototypes to see if IDs are available, then falling back to fetch the full file only if those IDs are null? It's a little clunky but might be better than full file fetch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants