The electric sail consists of a number of thin, long and conducting tethers which are kept in a high positive potential by an onboard electron gun. The positively charged tethers repel solar wind protons, thus deflecting their paths and extracting momentum from them. Simultaneously they also attract electron from the solar wind plasma. The arriving electron current is compensated by the electron gun. A way to deploy the tethers is to rotate the spacecraft and have the centrifugal force keep them stretched. Potentiometers between each tether and the spacecraft can be used to fine-tune the tether potentials and thus the solar wind force individually and thus control the attitude of the spacecraft.
The electric sail probably cannot be used inside planetary magnetospheres because there is no solar wind there, only slower plasma flows and magnetic fields. While modest variation of the thrust direction can be achieved by inclining the sail, the thrust vector always points more or less radially outward from the Sun.