You choose one object that you must touch throughout the casting of the spell. If it is a magic item or some other magic-imbued object, you learn its properties and how to use them, whether it requires attunement to use, and how many charges it has, if any. You learn whether any spells are affecting the item and what they are. If the item was created by a spell, you learn which spell created it. If you instead touch a creature throughout the casting, you learn what spells, if any, are currently affecting it.
Ritual. This spell can be cast as a ritual. The ritual version takes 10 minutes longer to cast and expends no spell slot, so it cannot be cast at a higher level; it requires a feature that grants ritual casting.
RollQuest ships the D&D 2014 SRD as a content pack, on a 5e character sheet that does the maths - roll from the sheet and let the numbers work themselves out. Free to start.