Complex sentence: Two or three retractable claws at the end of each leg are used to grip surfaces for climbing.
Split into simpler sentences: Two or three retractable claws are at the end of each leg. These claws are used to grip surfaces for climbing.