Modify target or value according to command

I want to assign a value to the Target or Value when a certain command is selected, but I cannot find which variable corresponds to the value of the Target within the code. Could someone help me with this.

What is the “certain command”? Need more info

For example: I select the click command, and I want the value to be written, “clicked”. I am looking inside the source code what is the variable that allows me to perform that action

For click, it’s click | your target

If you want to use a variable, it would be type | ${your variable}