A rapid antigen test is a diagnostic tool used to detect the presence of specific viral antigens in a patient's body, indicating an active infection. These tests are commonly used for detecting respiratory viruses like the influenza virus and SARS-CoV-2, the virus responsible for COVID-19. The test typically involves a nasal or throat swab and provides results in 15-30 minutes.