No, not possible at the moment. All Python code runs on the backend, and there's no facility for providing or running code on the front end, except for developing your own custom module.
It's been discussed as a possible feature some day but nothing has changed AFAIK: https://forum.inductiveautomation.com/t/perspective-screenshot-capture/