[RPG] use the Booming Blade/Green-Flame Blade cantrips from hiding and still have advantage (for Sneak Attacks)

cantripsdnd-5esneak-attackstealth

As stated here, you can use cantrips like booming blade and green-flame blade to trigger Sneak Attack under given conditions, naming one is you got advantage on your attack.

Now, one of the factors that can give advantage is hiding – being unseen and unheard – and then attacking.

Can I use those cantrips while hiding for sneak attacks, given that they have verbal components?

I would argue yes, because the attack is part of the spell and is performed sort of simultaneously with the verbal components, so it doesn't break the hiding advantage.

I'm not asking, if I can hide in combat to the get sneak attack, just if I can hide and use cantrips to trigger it without losing advantage from being hidden.

Best Answer

If you are hidden from the target at the time of casting then you get advantage:

Unseen Attackers and Targets (PHB p.194)

When a creature can’t see you, you have advantage on attack rolls against it.

The green flame blade spell, as an example, has this in the description:

Green-Flame Blade (Sword Coast Adventurer's Guide p.143)

As part of the action used to cast this spell, you must make a melee attack with a weapon against one creature within the spell's range, otherwise the spell fails. On a hit, the target suffers the attack's normal effects.

The action taken to cast the spell is also the action that "contains" the attack. If the target is unaware of the caster at the time of casting they are equally unaware of the caster at the time the attack is made.

Therefore the attacker has advantage on the attack roll and may use sneak attack.