Endoscopy is a noninvasive alternative to surgery for foreign object removal from the esophageal, airway or gastrointestinal tract. . An endoscope is a medical device consisting of a long, thin, flexible (or rigid) tube which has a light and a video camera attached. Specialized instruments can be guided into the airway or GI tract to remove foreign material under direct visualization.