Import Actions from your Device

This works natively on macOS. You could pull the Shortcuts toolkit DB from a macOS Docker container, etc., and use that database for development on another platform like Linux using the --toolkit= argument.

Shortcuts has a local database that consists of the actions installed on the device, including any actions from third-party apps.

Importing Actions

To use the actions for an app, use the following syntax of either the base bundle identifier (e.g., com.apple.shortcuts) or an application name in Shortcuts.

#import 'com.sindresorhus.Color-Picker'
// or...
#import 'Color Picker'

Standard Actions

To import the standard Shortcuts actions, use:

#import 'is.workflow.actions'

It is generally recommended to use the standard actions, which are written mostly in Cherri, instead. These actions define actions in a way that is much easier to use.

Searching Actions

Actions and their types should now be defined. To use them, look for them using the --action= argument.

# File with imports
cherri file.cherri --action=appname

This should show the actions defined for the app. Search them individually to see their enumeration types.

Localization

Use --toolkit-locale= to set the language.


Copyright ©. Distributed under the GPL-2.0 License. Siri Shortcuts and Mac are registered trademarks of Apple Inc. Apple is not involved in this project in any way. Do not contact Apple Support unless you are having an issue with the Shortcuts app itself.