Pass contents of UI vision variable into executeScript code?

Sure, see my answer in the web api thread.