A method of assembling a surgical instrument inside a patient and a device likewise configured to be assembled in vivo through a body wall of the patient is provided. In at least one embodiment, the method includes delivering an end effector (170) to a body cavity (50) of the patient, inserting a shaft (110) into the body cavity, and connecting the shaft to the end effector inside the body cavity. In such embodiments, the end effector can be operably engaged with a flexible member (190), wherein pulling the flexible member can cause the end effector to move toward the shaft such that the end effector connects to the shaft.Linvention concerne un procédé dassemblage dun instrument chirurgical à lintérieur dun patient et un dispositif associé conçu pour être assemblé in vivo à travers une paroi corporelle du patient. Dans au moins un mode de réalisation, le procédé comprend la pose dun effecteur terminal (170) dans une cavité corporelle (50) du patient, linsertion dune tige (110) dans la cavité corporelle, et le raccordement de la tige à leffecteur terminal à lintérieur de la cavité corporelle. Dans ces modes de réalisation, leffecteur terminal peut être mis en contact fonctionnel avec un élément flexible (190), la traction de lélément flexible pouvant provoquer le déplacement de leffecteur terminal vers la tige de telle sorte que leffecteur terminal se raccorde à la tige.