Endoscopy in gynecology refers to the use of a specialized instrument called an endoscope to examine the interior of the female reproductive system. This minimally invasive technique is utilized for both diagnostic and therapeutic purposes, allowing gynecologists to view and treat conditions within the uterus, fallopian tubes, and ovaries.