A medical tool comprising an electromechanical driver and a surgical instrument attachment for use in invasive surgery, including a handle coupled to a flexible sheath which is in turn coupled to a surgical attachment. The handle of the driver includes the electromechanical driver and at least one processor element which controls the actions of the electromechanical driver, and therefore the application elements of the surgical attachment, based on information relayed between the processor element and remotely activateable sensor assemblies in the surgical instrument attachment.