I found How to pass variables into shell script : r/shortcuts and there is screenshot which suggests that you can put variables in script and it will copy/paste values automatically:
Image from answer on Reddit (author: Infamous_Pea6200):