How can one write a shortcut that receives input from Spotlight search GUI (e.g. command+space)? I'd like to press command+space and type "ticket 12345", then have the shortcut generate the URL and open it in Safari. I've done this for years in Alfred with their custom workflows, but I'd like to do it in Spotlight too.
For example, I want to be able to use Spotlight to open a webpage for a specific support ticket number. The URL for the support system can be broken into a base URL and a parameter. I've created a shortcut called, "ticket" that I can run from Spotlight, but that shortcut has to open a window to ask for input.
On the command line this can be accomplished with the following syntax.
shortcuts run ticket <<< 121345 I'd looking for a way to accomplish the same thing when entering text in the Spotlight search field (command+space).

