A system a guidewire and a tensioning mechanism. The guidewire includes a thin elongated structure and an outer shell around a first portion of the thin elongated structure. A second portion of the thin elongated structure is exposed outside the thin elongated structure. The tensioning mechanism is configured to engage the second portion of the thin elongated structure to move the guidewire between a flexible state and a rigid state.