Looks like this might be possible now, looking at this Figma release: https://www.figma.com/plugin-docs/blog/2021/01/29/version-1-update-20/