To better understand the upper portions of your digestive tract, like your esophagus, stomach and upper small intestine, your physician may recommend an endoscopy, or an esophagogastroduodenoscopy (EGD). In this common procedure, your physician will use a tiny camera attached to the tip of an endoscope to see detailed views of the inside of your upper GI tract. You may experience slight discomfort after the procedure that usually clears in just a few days.