The plastic part stays in the same place, and moves a metal piece in and out. Iirc, the metal part is pushing the cable outer outwards from the body, increasing tension on the wire, moving the derailleur away from its rest/no tension position, ie closer to making the first shift.
There's also one on the rear derailleur. Look at a working bike and you should be able to see the metal bit protrude a little.