Spell Script target item?

I have created a dummy spell in Spell.dbc that allows a player to click an item to target it (Think enchanting), and I want to get that item’s ID. How do I interact with the item that the player clicks on after using the spell?