Like others have said, carefully read how the spell actually works.
The spell will tell a character if there's magic within thirty feet. That's all. It doesn't provide the location, direction, intensity, amount, or school of that magic. It just lets the character know that there's magic within 30 feet, and that it's not blocked by three feet of wood or dirt, a foot of stone, an inch of metal, or a thin sheet of lead. In other words, there's no way for a character to differentiate between the magic trap behind a thin wooden panel in the wall 25 feet away, the magic mouth spell cast on the pillar 5 feet away, and the potion in his backpack.
A character can use an action in order to see a faint aura around any visible magical object or creature within the spell's area of effect and learn its school of magic. The key word is visible. In the above example, the character could spend an action to focus and see a faint aura around the pillar and know that the magic is illusion-based. The fireball trap behind the panel in the wall? Not visible, so no aura or additional information. The potion in her backpack? Not visible, so no aura or additional information. The assassin sneaking up on her with a +5 dagger of brutal overkill? Not visible, so no aura or additional information.