How to give an argument to `shortcuts run ...` (macOS CLI for the Shortcuts app)?

I want to create a shortcut that gets the name of a focus from the CLI tool shortcuts run ... and sets that focus. How do I do this?

I have tried:

But as you see, the input is empty:

You’re not seeing the input value in the notification because you put it as an attachment. Pass it as the text of the notification instead.

Your next challenge will be that Set Focus doesn’t accept text as the name of the focus to activate it. You’ll have to create a bunch of If statement to compare with your input.