The capillary thermostat regulates the temperature of the water in the boiler using a capillary tube that senses the temperature. This type of thermostat is accurate and allows easy adjustment of the desired temperature. It is often used in modern boilers due to its reliability and accuracy in regulating heating.