Examination of the inside of the body by using a lighted, flexible instrument called an endoscope. In general, an endoscope is introduced into the body through a natural opening such as the mouth or anus. Although endoscopy can include examination of other organs, the most common endoscopic procedures evaluate the esophagus, stomach, and portions of the intestine.