BACKGROUND: Soilage of the surgical endoscope occurs frequently during minimally invasive surgery. The resultant impairment of visualization of the surgical field compromises patient safety, prolongs operative times, and frustrates surgeons. The standard practice for cleaning the surgical camera involves a disruption in the conduct of surgery by completely removing the endoscope from the field, manually cleaning its lens, treating it with a surfactant, and reinserting it into the patient; after which the surgeon resumes the procedure. METHODS: We developed an automated solution for in vivo endoscope cleaning in minimally invasive surgery- a port that detects the position of the endoscope in its distal lumen, and precisely and automatically delivers a pressurized mist of cleaning solution to the lens of the camera. No additions to the scope and minimal user interaction with the port are required. We tested the efficacy of this troCarWash™ device in a porcine model of laparoscopy. Four board-certified general surgeons were instructed to soil and then clean the laparoscope using the device. Representative pre- and post-clean images were exported from the surgical video and clarity was graded (1) digitally by a canny edge detection algorithm, and (2) subjectively by 3 blinded, unbiased observers using a semi-quantitative scale. RESULTS: We observed statistically significant improvements in clarity by each method and for each surgeon, and we noted significant correlation between digital and subjective scores. CONCLUSION: Based on these data, we conclude that the troCarWash™ effectively restored impaired visualization in a large animal model of laparoscopy.