A medical procedure in which a tool is used to examine the interior of the body such as the stomach, esophagus or intestines.