Novel action spectroscopic scheme for rotational spectroscopy in cold ion traps. Detailed kinetics model including key elementary processes tested on CD+. Determination of rotational state-dependent ternary attachment rate coefficients. Improved frequency accuracy of the CD+ (J=1–0J=1–0) rotational ground state transition. General applicability for high-resolution rotational spectroscopy of molecular ions.