Twilight (5e Equipment)
From D&D Wiki
Weapon (katana), legendary (requires attunement)
This magic katana was made from a supernatural alloy and imbued with magic to use other magic as it's own. This sword has four glyphs in the middle of its blade, when attuned, they glow with magical energy.
Magic circle: One glyph shows three circles engraved into the blade. It grants a +1 to melee attack and spell attack rolls made with this weapon.
Cantrip Beads Two glyphs each grant the ability to cast one cantrip each from the wizard spell list while you are attuned.
Magic Storing: The final glyph can store a spell. Any creature can Cast a Spell of 1st through 5th Level into the weapon by touching the holding the sword as the spell is cast. The spell has no Effect, other than to be stored in the ring. If the ring can't hold the spell, the spell is expended without Effect.
While attuned to this blade, you can cast any spell stored in it. The spell uses the slot level, spell save DC, spell Attack bonus, and Spellcasting Ability of the original caster, but is otherwise treated as if you cast the spell. The spell cast from the ring is no longer stored in it, freeing up space.