Endoscopy is a minimally invasive treatment that looks within the body, like the respiratory system or digestive tract, and utilizes a flexible tube with a camera to evaluate and diagnose diseases. Its purposes include tissue sample collection, interior structural visualization, and occasionally small-scale surgical procedures.