Abstract: The mechanism for operating a rechargeable electrical tool having a rechargeable battery for line-powered operation or for battery-powered operation includes an adapter for electrical connection of a tool portion to a current source; a holder shaped to hold the adapter alone and also the adapter together with the tool portion when the adapter is connected with the tool portion; a device for releasably attaching the tool portion to the adapter; a device for releasably attaching the adapter to the holder; means for detaching the adapter from the holder at least partially located in the adapter and cooperating with the means for releasably attaching the tool portion to the adapter, so that when the adapter is in the holder and when the means for releasably attaching the tool portion to the adapter is actuated to attach the tool portion to the adapter, the means for detaching the adapter detaches the adapter from the holder; and a device for detaching the tool portion from the adapter cooperating with the means f