You just print a new cover, a new cover for the tool head with a place for the switch, and then use the spare original E3D wiring. On each tool, the dock part is replaced, included are both normal and mirror tool parts.
In rep rap firmware or Klipper, you should use conditional programming for the switch to be able to prevent loading a new tool with the present tool on the tool head