How to implement bioluminescence

what about an organism, through evolutionary creationism, making a glass bulb with a silica cell wall exoskeleton tissue and having that tissue take air from its inside actively and letting it diffuse out into the environment(whether that be the blood, the water, or the air) and having some cells print a lightbulb filament from a metal(like tungsten) or actively take mercury from the blood and put it in the bulb to prevent mercury poisoning and to be kept there to make the lightbulb glow and have it be a coil bulb when the mercury vaporizes in the coil bulb.