ok so mawile's attack "mining" reads
Mining
Search your deck for a Trainer card, show it to your opponent, and put it into your hand. If that card is a Pokemon Tool card, you may attach it to 1 of your Pokemon instead. Shuffle your deck afterward.
my question is can this attack be used...