A vaginal swab is a medical test that involves collecting a sample from the vagina using a small, sterile cotton swab. This sample is then analyzed to diagnose various conditions, such as infections, sexually transmitted infections (STIs), and other gynecologic issues.