Cystoscopy is a medical procedure that allows doctors to examine the inside of the bladder and urethra using a thin, flexible tube with a camera called a cystoscope. It is commonly used to diagnose, monitor, and treat conditions affecting the urinary tract, such as bladder cancer, urinary tract infections, and bladder stones.