Magnetic Tomography of a Cavity State.