examination of the inside of the stomach using an endoscope, passed through the mouth and esophagus. an endoscope is a thin, tube-like instrument with a light and a lens for viewing. it may also have a tool to remove tissue to be checked under a microscope for signs of disease. also called gastroscopy.