Export Multiple Frames into Folder Structure

I try to export multiple Frames from one Page into a Folder Structure an add some Meta info in a JSON File.
I could do this easily with a nodeJS script making use of the GET File API. Unfortunately this is not secure in Figma see GET file API Filescurity .

With the limited possibilities for Filelhandling and export in Figma Plugins I could not find a way.

But maybe I am missing something? Who can help?