Figma Automation with Python

Hey all!

I’d like to know how to do the automation sequence through Python:

1 - take an specified image from Google Drive
2 - insert it into a Component Image inside a specific Page in Figma.
3 - go to another Page named “Mockups”
4 - download all files as JPG MAX RESOLUTION and put them into a specified Google Drive Folder.

I have kinda 4000 images to do so, and need to work in Cloud.
And no, Photoshop is not an option for me.

Anybody has any idea?

Note: I’ve already tried, in company of ChatGPT-o, to do such. But the API Token generated only gives me Watch permissions, and I need WRITE permissions.

Thanks!