Tumor recurrence and wound infection are devastating complications of wide excision surgery for melanoma, and deep postoperative wound drainage typically increases pain. An amoeba-inspired magnetic soft robot (ASR) with switchable dormant and active phases is developed to address the aforementioned challenges. The dormant ASR supports wounds through its solid-like elasticity and regulates reactive oxygen species (ROS) levels bidirectionally, promoting healing in infected wounds and eliminating residual tumors. It solves the challenge caused by the contradictory need for ROS scavenging in wound healing and ROS amplification in tumor/infection management. The active ASR removes absorbed wound exudate by crawling out from irregular wounds; interestingly, this crawling motion prevents damage to fragile tissues and alleviates wound pain via "non-direct friction." More importantly, ASR switches different states in response to an alternating magnetic field owing to its magnetothermal properties, and this process also exerts synergistic antitumor and bacteriostatic effects. Due to the appropriate mechanical structure (cohesive force) of ASR, the content of magnetic nanoparticles required to drive the ASR is ten-fold lower than that of conventional magnetic soft robots, enabling in vivo degradation. These outcomes highlight the vantage of the ASR for treating post-tumor excision wounds and underscore their potential for clinical application.