Thoracoscopy is a minimally invasive procedure used to examine the inside of your chest. It aids in your diagnosis and treatment if there is fluid in your chest, which is also known as a pleural effusion.