Before esophagogastroduodenoscopy (EGD), you will be given a sedative. Your physician will thread a narrow, flexible tube called an endoscope—which has a tiny light and camera at the tip—through your mouth, esophagus and into your stomach and sometimes small intestine. He or she can then see any abnormalities and take tissue samples for laboratory analysis if desired.