There are a handful of tags for the most common types of weapons:
Other weapons can be found with a combination tag search:
This tag implicates holding and weapon (learn more).
The following tags implicate this tag: holding_bow_(weapon), holding_crossbow, holding_dagger, holding_gun, holding_nunchaku, holding_polearm, and holding_sword (learn more).