Thoracoscopy is a medical procedure involving internal examination, biopsy, and/or resection of disease or masses within the pleural cavity and thoracic cavity.