An endoscopic biopsy is a medical procedure where a thin, flexible tube called an endoscope is used to examine the interior of a hollow organ or cavity in the body and obtain tissue samples. This method is often employed to identify cancerous tissues, allowing for a precise diagnosis and suitable treatment plan.