Endoscopy is an optical instrument used to see inside the alimentary canal. It is a nonsurgical procedure used to examine a person's digestive tract. Using an endoscope, a flexible tube with a light and camera attached to it, the doctor can view pictures of the digestive tract on a monitor.