A procedure in which an instrument called an endoscope is used to look inside the body.