The workspace can be explicitly specified by name like this, for values of workspace_name and output_name:
i3-msg '[workspace="workspace_name"]' move workspace to output output_nameoutput_index
Note that if you name your workspaces like 1:first, you use 1 not first.