Herein, a solid-phase microextraction method was developed based on an agarose-loaded mesoporous silica nanocomposite embedded in a polyether sulfone thin film, followed by liquid chromatography-tandem mass spectrometry (LC-MS/MS) analysis. The microextraction was performed using a multi-channel microfluidic device incorporating the prepared nanocomposite thin film to extract morphine (MOR), heroin (HER), codeine (COD), and methamphetamine (MET) from eye tear samples. Field emission scanning electron microscopy (FE-SEM), Fourier-transform infrared spectroscopy (FT-IR), Brunauer-Emmett-Teller (BET), thermal gravimetric analysis (TGA), and transmission electron microscopy (TEM) were employed to characterize the nanocomposite. The influence of various parameters on the extraction efficiency-including sample pH, sample flow rate, nanoparticle and polyether sulfone amounts, eluent type and volume, and eluent flow rate-was systematically studied. Under optimized conditions, the limits of detection (LOD) were 0.07 and 0.06 ng mL-1 for COD and HER, respectively, and 0.1 ng mL-1 for MET and MOR. The matrix effect, ranging from 8.85 % to 45.64 %, was evaluated using box-whisker plots. Intra-day and inter-day RSDs% were below 4.5 % and 4.0 %, respectively. Calibration curves showed linearity over 0.5-80.0 ng mL-1 for MET, 0.2-80.0 ng mL-1 for COD, and 0.4-80.0 ng mL-1 for MOR and HER. Relative recovery (RR%) values assessing accuracy in tear samples ranged from 90.0 % to 112.0 %. Greenness and Blueness scores of 0.72 and 57.5, respectively, demonstrate that the suggested approach is both sustainable and applicable. These findings indicate that this method is a suitable alternative for measuring trace amounts of narcotic drugs in tear samples.