Figma ui kit plugin to copy paste components

Hi friends,
I’m developing figma plugin with collection on UI components , How I can use my plugin to copy component from one figma file to another figma file ?

Similar example : App UI Builder | Figma Community

How I can build plugin similar to above ? please help me to share your solutions,