Whir of Invention

Whir of Invention

Instant (CMC 3)
Improvise (Your artifacts can help cast this spell. Each artifact you tap after you're done activating mana abilities pays for .)
Search your library for an artifact card with mana value X or less, put it onto the battlefield, then shuffle.