A nerve stimulator is an intraoperative tool that delivers a weak electrical current to nerves in order to assess the nerve and muscle function when dissecting tissue or repairing nerves.