A thoracoscopy is a medical treatment that allows a clinician to examine the space inside the chest (outside of the lungs). Bronchoscopy is a diagnostic procedure that allows doctors to examine your lungs and airways.