An endoscopy is a medical procedure that allows doctors to examine the interior surfaces of an organ or tissue using an instrument called an endoscope. This instrument is typically a long, thin, flexible tube with a light and a camera attached to it. The camera captures real-time images and sends them to a monitor, allowing the physician to see the organ in detail.