This is a guide on how to open a Shortcut using a URL. Full details can be found on Apple’s website
The URL structure looks like
shortcuts://run-shortcut?name=[name]&input=[input]&text=[text]
Use the following parameters in the URL:
name
: The name of the shortcut to run
input
(optional): The initial input into the shortcut. There are two input options: a text string or the word clipboard. When the input value is a text string, that text is used. When the input value is Clipboard, the contents of the clipboard are used
text
: If input is set to text, then value of the text parameter is passed as input to the shortcut. If input is set to clipboard, then this parameter is ignored.
By using a text string, you can provide your own URL-encoded text as input to the shortcut. For example, a URL that uses the text “goetta is great” as input to a shortcut named Lookup Goetta would look like this:
shortcuts://run-shortcut?name=Lookup%20Goetta&input=text&text=goetta%20is%20great
A URL to transfer the most recently copied text into a shortcut called Add to Notes would look like this:
shortcuts://run-shortcut?name=Add20%to20%Notes&input=clipboard