During an endoscopic biopsy, the endoscope is inserted into the body through a natural opening such as the mouth, nose, or anus. The camera on the endoscope transmits images to a monitor, allowing the physician to navigate and identify suspicious areas. Special tools attached to the endoscope, such as forceps or a needle, are then used to collect tissue samples for further examination.