Gastroscopy is a medical procedure that allows for the visual inspection of the upper gastrointestinal (GI) tract, including the esophagus, stomach, and duodenum. This is typically done using a flexible tube called a gastroscope, which is equipped with a light and camera. In the context of histology, gastroscopy plays a crucial role in obtaining tissue samples for microscopic examination to diagnose various gastrointestinal conditions.