For manipulating nanometric particles, we propose a photonic crystal waveguide cavity design with a waist structure to enhance resonance characteristic of the cavity. For trapping a polystyrene particle of 50 nm radius on the lateral side of the waist, the optical force can reach 2308 pN/W with 24.7% signal transmission. Threshold power of only 0.32 mW is required for stable trapping. The total length of the device is relatively short with only ten photonic crystal periods, and the trapping can occur precisely and only at the waist. The designed cavity can also provide particle detection and surrounding medium sensing using the transmission spectrum with narrow linewidth. The simulated figure of merit of 110.6 is relatively high compared with those obtained from most plasmonic structures for sensing application. We anticipate this design with features of compact, efficient, and versatile in functionality will be beneficial for developing lab-on-chip in the future.