I get why this is confusing but args is only used when running the script from a share sheet.
args
I’ve briefly described two approaches for passing input/output between shortcuts: