A series of two-photon absorption organotin (IV) cyano carboxylate derivatives for targeting nuclear and visualization of anticancer activities.