Unfortunately, you cannot directly toggle the macOS pointer size with a native "Set Pointer Size" action inside the Apple Shortcuts app. macOS does not expose a single-click toggle command for the display cursor size because system preference settings like pointer scale do not have a direct API toggle in Shortcuts.
The Alternative Approach via Shortcuts and AppleScript
Because modifying com.apple.universalaccess via command-line defaults write does not dynamically refresh the live pointer size on your screen without a UI refresh, a pure background toggle is restricted by macOS security and accessibility layers.
Instead, you can set up an Accessibility shortcut key or use the built-in macOS Shake mouse pointer to locate feature as a quick visual aid:
Shake to Enlarge (Built-in Alternative):
- Go to Apple menu > System Settings > Accessibility > Display.
- Turn on Shake mouse pointer to locate.
- Rapidly wiggle your finger on the trackpad or mouse to temporarily blow up the size of the pointer
Shake to Enlarge looks like this:

More info from Apple: Make the pointer easier to see on Mac - Apple Support
Quicker Access via Accessibility Shortcut Menu:
- You can assign a keyboard shortcut to open Accessibility options directly by going to System Settings > Accessibility > Shortcut (at the bottom)