The IGRA TB test works by measuring the response of the immune system's T cells to TB-specific antigens. When a person is infected with the TB bacterium, their immune system produces interferon-gamma in response to these antigens. The IGRA test quantifies the amount of interferon-gamma released, helping to determine whether a person has been exposed to TB.