A gastroscope is a specialized type of endoscope used to examine the interior of the esophagus, stomach, and the first part of the small intestine (duodenum). It is a flexible tube equipped with a light source and a camera, enabling healthcare professionals to view the lining of these organs on a screen.