Small robots directed by magnetic fields can cooperatively lift heavy objects, form floating rafts and push through clogs. They may one day deliver drugs within the human body