Want to copy/get FrameNode as Image

Hello everyone,

I’m currently working on a Figma Plugin, and I’m facing a challenge where I need to display a thumbnail of a specific FrameNode. I’ve thoroughly reviewed the documentation, but I haven’t been able to find a solution for this. Could someone please suggest how I can capture a FrameNode as an image?

Thank you in advance for your help!