I know this thread has been dead for a while but I came back to try this again and I got it work.
Code:
#alias {grab} {#action {$$0} {#script umc.getEvent();#script umc.setVar("raw", umc.getEvent());#unaction {$$0}}
it will variable the string you need to the varaiable raw without the esc char, you will have to add the char in your self like Rar has mentioned.
Thanks for everyones help on this.