The spigot pin, also known as the joint pin, is inserted into the ends of scaffold tubes to securely connect them together for height adjustment.