The primary function of a refrigeration capillary tube is to control the flow of refrigerant in a refrigeration system. It acts as a metering device, regulating the amount of refrigerant that enters the compressor, and ensuring that the system operates within the desired pressure and temperature ranges.