Scripting Card Functions are called on the Card object. For example
Card card=getAIPlayer(0).getHandCard(0); if(card.getName()=="Tangler") { // ...
List of functions:
string getName();