The ability is a mana ability, so it is activated and resolves as a mana ability, but it can only be activated at times when you can cast an instant. Yes, this is a bit weird.

Artwork
Loading artwork…
Lion's Eye Diamond
Mirage · #307 · EN
Nonfoil—Foil—
Card rules
Discard your hand, Sacrifice this artifact: Add three mana of any one color. Activate only as an instant.
Held in the lion's eye —Zhalfirin saying meaning "caught in the moment of crisis"
Rare · Illustrated by Margaret Organ-Kean
Format legality
Commander Legal
Legacy Legal
PreDH Legal
Premodern Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Duel Banned
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Oathbreaker Banned
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Banned
Vintage Restricted
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions