Perspective - Accessing images on the clipboard

I have a need where It would make the users life a lot easier if I could provide a way to paste the image data from the clipboard and get those image bytes. I could then store them off to db or file or send them out to a REST call for OCR.

I’ve been looking at the async clipboard API and have written an html file through Webdev that can put text into the clipboard. So i know the API is working just fine in Chrome. I just cannot figure out how to get the feature to return data.

I think I need to define a python file where I can setup the doGet and doPost events to handle the returned data. Does this sound right? Or is there another way to access the clipboard data without needing to use the webdev?