The electric endoscope nail compartment is composed of a closing rod, a red firing rod lock, a firing handle, a nail anvil release button, a battery pack, a battery pack release plate, a manually operated access hole cover plate, a knife reverse switch, a knob, a joint fin, a nail compartment, a nail compartment clamping surface, a nail compartment alignment plate, a nail compartment alignment groove, a sewing nail protection nail plate, a nail anvil pliers, and a nail compartment pliers. The stapler includes a closed push tube and GST technology for nail storage. The battery pack must be installed before use. This product is suitable for cross cutting, cutting, and/or establishing a fit. This device can be used in various open or minimally invasive thoracic surgeries, digestive and hepatobiliary pancreatic surgeries, and can be used in conjunction with suture threads or tissue support materials. This instrument can also be used for liver parenchyma (hepatic vascular system and biliary structure), pancreatic transverse resection and resection surgery.