This is the method I use for uncoupling locos at various positions on my Katharine Street layout. It simply uses a magnet below the track, and a small staple attached to the dropper of the coupling arm on the leading coach. In practice it can be more difficult to stop the locomotive at exactly the right position than shown here.
Peter