What kind of pills or treatment can somebody get for toe swelling?

Antiinflammatories. Check with doc, it might be gout.
Toe swelling. Once the cause of the swelling is determined, the appropriate treatment can be implemented. For example, if the swelling is infectious in nature, antibiotics can be used. If the cause is gout, then Allopurinol can be utilized. But the cause needs to be determined. See a specialist.
Depends on the cause. Some causes of toe swelling can include localized issues such as arthritis, infection, ingrown toe nails, trauma (fracture, sprain, and tendonitis, tight shoes) and side effects to medication. Have it evaluated by a professional and get the appropriate treatment.