Pediatric endoscopy is a minimally invasive diagnostic and therapeutic procedure that allows doctors to visualize the internal organs and structures of a child's body using an endoscope. This tool is a flexible tube with a light and camera attached, which can be inserted through natural openings like the mouth or rectum or through small incisions.