The syntax for gcd is:
gcd(a,b)

You can get help on the gcd command by typing gcd? at the prompt. If you want to see the details of Sage's gcd code, you can type gcd?? at the prompt.