For TMS, a wire coil is held on the scalp. A brief electrical current passed through the coil creates a magnetic pulse that stimulates the brain. During the stimulation, the subject may be asked to tense certain muscles slightly or perform other simple actions.