An endoscopic biopsy is a medical procedure wherein a small tissue sample is taken from the gastrointestinal tract using an endoscope. An endoscope is a flexible tube with a light and camera that allows physicians to visualize and access internal organs. The tissue obtained is then analyzed to diagnose conditions such as infections, inflammation, cancer, or other abnormal growths.