Wireless capsule endoscopy (WCE) is a powerful tool for medical screening and diagnosis, where a small capsule is swallowed and moved by means of natural peristalsis and gravity through the human gastrointestinal (GI) tract. The camera-integrated capsule allows for visualization of the small intestine, a region which was previously inaccessible to classical flexible endoscopy. As a diagnostic tool, it allows to localize the sources of bleedings in the middle part of the gastrointestinal tract and to identify diseases, such as inflammatory bowel disease (Crohn's disease), polyposis syndrome, and tumors. The screening and diagnostic efficacy of the WCE, especially in the stomach region, is hampered by a variety of technical challenges like the lack of active capsular position and orientation control. Therapeutic functionality is absent in most commercial capsules, due to constraints in capsular volume and energy storage. The possibility of using body-exogenous magnetic fields to guide, orient, power, and operate the capsule and its mechanisms has led to increasing research in Magnetically Guided Capsule Endoscopy (MGCE). This work shortly reviews the history and state-of-art in WCE technology. It highlights the magnetic technologies for advancing diagnostic and therapeutic functionalities of WCE. Not restricting itself to the GI tract, the review further investigates the technological developments in magnetically guided microrobots that can navigate through the various air-and fluid-filled lumina and cavities in the body for minimally invasive medicine.