Since I often manually put a device mockup around a recent screenshot (including cleaning up the status bar) using Picsew, I would like to automate that. Unfortunately Picsew does not support Shortcuts directly, but it does support X-Callback-URL schemes.
In this case the shortcut should take care of copying the input to the clipboard and deleting the selected screenshot. However, I already fail at copying the input (selected screenshot) to the clipboard…
I’ve modified it a little to that this one would allow you to select it in Shortcuts, foregoing Photos, or pass it in from Photos via the share sheet.
In my testing, both result in a framed version of the original image being present on the clipboard.
Ha, you’re even 1 step ahead of me: checking whether there is input or not would have been my next step…
Unfortunately there seems to be something wrong with my iPhone setup. Your shortcut worked exactly once when activating via the Share menu after selecting a screenshot. After that it no longer worked for that code path… (No clue what’s wrong with my setup)
The change is to replace the mockup parameter and value with the mockup2 parameter and value. I’ve posted the modification below, but what was the underlying problem you were having in getting this to work?