Endoscopy is a medical procedure that allows doctors to view the inside of your digestive tract using a tool called an endoscope.