A tool to help brain surgeons test and more precisely remove cancerous tissue was successfully used during surgery. The mass spectrometry tool sprays a microscopic stream of charged solvent onto the tissue surface to gather information about its molecular makeup and produces a color-coded image that reveals the location, nature and concentration of tumor cells.