In surgical procedures, dyes are used to enhance visualization and precision. For example, during laparoscopy, Methylene Blue can be used to check the patency of the fallopian tubes. Similarly, Indigo Carmine can be injected during a cystoscopy to identify ureteral openings and ensure there is no damage to the urinary tract.