Grace might not know why one needs a hug, but if a hug is needed, she knows it, and she will be there.
If she's nearby, and it's physically possible for her to do so.
And if she actually knows the person in question.
And if she... Okay, there's a lot of "buts" involved, but you get the idea.
Leap!
"Non-prescription leap" instead of "over the counter leap" was something I wrote just for my own amusement in the script, but now it's a sound effect.
It's a good example of how my mind works, really.