A capsule includes a main body with at least one tail connected to the main body. At least two coils are disposed on each tail such that the coils are responsive to a magnetic field interacting with the coils such that a force is exerted on the tail. The capsule is controlled through application of a varying magnetic field with a constant current in the coils and/or by providing varying a current in the coils that interact with a constant magnetic field. The capsule can be disposed in a cavity, and the magnetic field can be provided from outside the cavity to affect movement of the capsule. An MRI device can be configured to control and image the capsule.