See the example here which passes some data from Shortcuts to a Scriptable script using the URL scheme.