I would like to get the details of Instance Swap based on the values. For Example,
Do you want to get the node object itself? Use the getNodeById method.
getNodeById