you can use clipboard with pbpaste/pbcopy commands
ocr-text "$1" && pbpaste
ocr-text "$1" && pbpaste
shortcuts run ocr-text -i new-haven-pizza.jpg | catI went back into my shortcut and Shortcuts added a pseudo-action "Stop and output <copy to clipboard>; if there's nowhere to output: <Do Nothing>", and I would think that "Do Nothing" would mean don't create a file, but I guess Quick Actions has some kind of special meaning given that all the other ones seem to be intransitive actions, implying that the user wants a file as the output.