Shortcuty Studio
Shortcuty Studio

Documentation

Learn Shortcuty Script, from your first shortcut to the full language syntax.

Shortcut settings

Set the shortcut name, icon, inputs, and where it appears in Shortcut details. Add setup questions when each person needs to supply their own values at install time.

Review the settings after importing an existing shortcut. The reference below lists which values can be edited in source and which are preserved from Apple Shortcuts.

Full reference and examples

This is the exact supported AI settings patch contract, generated from the validator. It does not list every field Apple may preserve. Device availability and execution are not verified.

Editing existing projects

Use edit_project with a summary and settings object. Only supplied keys change; omitted and unknown imported metadata is retained. A supplied list replaces that whole supported list, so retain other intended surfaces. Empty [] clears a supported list. Null is not deletion. A stored value outside the supported contract cannot be replaced through this tool, preventing loss of unknown native configuration. Settings edits remain draft proposals and require a compile check.

Editor shortcut metadata overrides source workflow_settings, including exact imported metadata. Use edit_project.settings for those changes rather than only rewriting workflow_settings. Appearance uses the separate appearance field.

Authoring new projects

Use literal workflow_settings({...}, merge_defaults: true) directly in the shortcut body before actions to retain normal compiler defaults for omitted keys. Supplied lists replace their entire default list; supplied icon fields merge with normal icon defaults. Without merge_defaults, or with false, workflow_settings remains exact metadata replacement for import preservation. The keys and values below are the evidence-backed AI subset. For example:

shortcut SharedText:
  workflow_settings({"WFWorkflowTypes": ["ActionExtension"], "WFWorkflowInputContentItemClasses": ["WFStringContentItem", "WFURLContentItem"]}, merge_defaults: true)
  show(input)

Supported list settings

Each value is a distinct list of at most 32 entries from its own allowed values. Input and output classes have separate evidence coverage; do not substitute one list for the other.

WFWorkflowTypes

ActionExtension, MenuBar, NCWidget, QuickActions, ReceivesOnScreenContent, WFWorkflowTypeShowInSearch, Watch

WFWorkflowInputContentItemClasses

WFAVAssetContentItem, WFAppContentItem, WFAppStoreAppContentItem, WFArticleContentItem, WFContactContentItem, WFDCMapsLinkContentItem, WFDateContentItem, WFDictionaryContentItem, WFEmailAddressContentItem, WFFolderContentItem, WFGenericFileContentItem, WFImageContentItem, WFLocationContentItem, WFNumberContentItem, WFPDFContentItem, WFPhoneNumberContentItem, WFRichTextContentItem, WFSafariWebPageContentItem, WFStringContentItem, WFURLContentItem, WFiTunesProductContentItem

WFWorkflowOutputContentItemClasses

WFContentItem, WFDictionaryContentItem, WFStringContentItem

Supported boolean settings

Use literal true or false, not strings or numbers.

  • WFWorkflowHasOutputFallback
  • WFWorkflowHasShortcutInputVariables
  • WFWorkflowIsDisabledOnLockScreen

Other configuration

For setup prompts, read the language guide section Shortcut configuration and setup questions and get_action setup_question. Use a symbolic root action target plus the native apple_key returned in its action contract. Explicit default: null omits DefaultValue; omitted default copies the static parameter value.

For automation events, read the triggers guide and author only its supported literal trigger calls. Do not put raw trigger dictionaries or setup action indices in settings. Exporting configuration does not install or enable it on a device.

For individual action options, use get_action with the exact supported call. Its contract supplies types, native parameter keys, enums, defaults and constraints. Retain unsupported imported payloads unchanged rather than guessing native fields.