Export clipboard image content

Hi,

I’m trying to write a UXP plugin that stores any images imported into a Photoshop document in one consolidated folder. For image content that is copied in from the clipboard, I’m hoping to save a copy of the image content - does anyone know a way to do this with UXP?

Thanks!
Nikhil