Despite laparoscopic-guided minimally invasive hepatectomy emerging as the primary approach for resecting hepatocellular carcinoma (HCC), there's still a significant gap in suitable biomaterials that seamlessly integrate with these techniques to achieve effective hemostasis and suppress residual tumors at the surgical margin. Electrospun films are increasingly used for wound closure, yet the employment of prefabricated electrospun films for hemostasis during minimally invasive HCC resection is hindered by prolonged operation times, complexity in implementation, limited visibility during surgery, and inadequate postoperative prevention of HCC recurrence. In this study, we integrated montmorillonite-iron oxide sheets into the PVP polymer framework, enhancing the resulting electrospun polyvinylpyrrolidone (PVP) /montmorillonite-iron oxide (MI) film (abbreviated as PMI) with robustness, hemostatic capability, and magnetocaloric properties. In contrast to the in vitro prefabricated electrospun films, the electrospun PMI film is designed to be formed in situ on liver wounds under laparoscopic guidance during hepatectomy. This design affords superior wound adaptability, facilitating meticulous wound closure and expeditious hemostasis, thereby simplifying the operative process and ultimately alleviating the workload of healthcare professionals. Moreover, when exposed to an alternating magnetic field, the film can efficiently ablate residual tumors, significantly augmenting the treatment efficacy of HCC. This article is protected by copyright. All rights reserved.