Limit the input for a shortcut when run from another app on Mac
When you first enable a shortcut to run from another app, the shortcut will accept any content as an input. Limiting the type of content that a shortcut will accept streamlines sharing options in an app, by hiding shortcuts that aren’t relevant to the app. For example, a shortcut that accepts only contacts won’t appear as a sharing extension in the Maps app. See the full list of input types and their definitions in Understanding input types in Shortcuts on Mac. You can allow your shortcut to react dynamically if no input was received.
Note: Some shortcuts receive no initial input (for example, shortcuts that you run from the Dock).
In the Shortcuts app on your Mac, double-click the shortcut you want to edit.
The shortcut opens in the shortcut editor.
Click Any (or the current input) in the input action.
If you don’t see an input action, see Run a shortcut while working on your Mac.
Turn off any content type you don’t want as input for your shortcut.
Click Clear to turn off all content types.
Optional: To choose how the shortcut responds if there is no input, click Continue in the input action and choose one of the following:
Stop and Respond: The shortcut stops and (optionally) displays a message. To display a message when the shortcut runs and there is no input, click Response and type a message.
Ask For: The shortcut asks for input. Select the content type to pass through to the shortcut.
Get Clipboard: The shortcut uses the contents of the Clipboard as input.
Continue: The shortcut runs without interruption. If an action uses the input as a Magic Variable, the variable will be empty.