Text this: Light-driven transformable optical agent with adaptive functions for boosting cancer surgery outcomes