Unique file identifier

Will you be publishing the plugin to the Figma Community (if not already published) or are you developing the plugin just for yourself?

If the former, then you need to come up with something, such as asking the user to paste a link to a file in order to get a fileKey. If the latter, then enable the private plugin API in the manifest.json file and use the figma.fileKey.