Name automatically paste To Clusters input(outPut)

i need Scripts(pythons or c#) name automatically paste To Clusters input(outPut)in grasshopper
(when ClusterInput connect to entrance of component)
Can someone help me?