If I create a script and it can accept variable inputs, those don’t show up in the automation UI as an optional input.
They do if you set a selector for the field.
e.g.
script:
my_script:
fields:
field_1:
description: ..
selector:
...
sequence:
...