Can you export the var to the B leg using this code?
api.ExecuteString("uuid_setvar "….
Would the syntax be Usage: uuid_setvar <uuid> Export <varname> [value]