Medical nanorobots work by being introduced into the human body, often via injection or ingestion. Once inside, they can perform a variety of tasks such as targeted drug delivery, real-time monitoring of biochemical processes, and even surgical procedures. These nanodevices are often powered by biocompatible energy sources and are controlled through external stimuli such as magnetic fields, light, or ultrasound.