This study utilizes CDH17 nanobody (E8-Nb) with the near-infrared (NIR) fluorescent dye IRDye800CW to construct a NIR-II fluorescent probe, E8-Nb-IR800CW, and a Pseudomonas exotoxin (PE)-based immunotoxin, E8-Nb-PE38, to evaluate their performance for CRC imaging, imaging-guided precise tumor excision, and antitumor effects. Here, CDH17 is linked to colorectal carcinoma.