text: Potassium tetraiodomercurate(II) is an inorganic compound with the chemical formula . It consists of potassium cations and tetraiodomercurate(II) anions. It is the active agent in Nessler's reagent, used for detection of ammonia.