Hello Figma,
Is it possible to add a way to get file ID in the plugin API? My team and I have developed a couple of plugins for clients that enhance collaboration or workflow automation. We have had a few use cases for this feature including the following:
-
Collaboration: A plugin wants to keep records of elements belonging to a particular file and later when a user loads the plugin, we want to check what file the user is in so we can show them the said elements for that file or throw an error if it’s a wrong file.
-
Workflow Automation: Plugins automating repetitive tasks use file IDs to remember and apply settings or changes to the right file consistently.
Currently, we have been solving this by asking users to provide their file URL so as to extract the file ID of the file they are currently running the plugin which does not provide a good user experience I would say.
Thanks