A system comprises a medical instrument including a nozzle and a lens. The system further comprises a valve configured to control provision of a pressurized fluid. The system further comprises a valve control mechanism and a control system. The control system is configured to determine, based on a position of the medical instrument within a patient anatomy, whether an obstruction is on a surface of the lens. The control system is further configured to, based on a determination that the obstruction is on the surface of the lens, instruct the valve control mechanism to open the valve to release a flow of the pressurized fluid through the nozzle and over the surface of the lens.