Can anyone help me with how to copy Figma file/component to the clipboard from a website or plugin?

Can anyone help me with how to copy Figma file/component to the clipboard from a website or plugin? Like Component Explorer they did.