You can set the value of the widget with the setValue method.

The value of the widget is an array of Token Groups.

You can use a String as shorthand for a Token Object when using setValue.