Thoracoscopy is a procedure a doctor uses to look at the space inside the chest (outside of the lungs). This is done with a thoracoscope, a thin, flexible tube with a light and a small video camera on the end. The tube is put in through a small cut made near the lower end of the shoulder blade between the ribs.