macOS

Add a special variable to a text field: Control-click in any text field in an action, choose Insert Variable, then choose a special variable from the submenu.
The special variable is placed inline in the text field (at the original insertion point).
Add a special variable to a parameter: Control-click a parameter control (for example, a pop-up menu or checkbox), then choose a special variable from the menu.
Note: If you choose Select Variable from the menu, the Magic Variable view opens in the shortcut editor. (See the previous task for details.)
Add a manual variable to an action
In the Shortcuts app
When the shortcut runs, you’re prompted to choose a Repeat parameter.