A device for locating and retrieving a misplaced foreign body that has metallic characteristics includes a shaft connected to a handle and a retrieval tool that is coupled to the shaft and moves between a deployed position and collapsed position. The tool has a magnetic element that generates a magnetic field, wherein the magnetic field extends over a greater area in the deployed position and is of sufficient strength to attract the foreign body such that it is held in contact with the tool. The device can be part of an automated robotic system and can also include a metal detector to assist in locating the misplaced foreign body.