Sorry, it has been a long time since I played at all with Dynamixel Workbench. I only played with it some back when I was doing some ROS stuff, which has been a couple of years now.
So hopefully someone who uses it or someone from Robotis will give a more complete answer.
I assume you looked at their documentation on the workbench, like:
If I remember correctly to use the workbench wrappers of the SyncWrite, you need to tell it what logical fields you are wanting to write data to, by using the addSyncWriteHandler function to tell it what you are wanting to write, maybe something like: “Goal_Position”
I think you can add a certain number of these (like 5) and the index is the index to which one of these SyncWriteHandlers you are wanting to work with.
Sorry I am not giving many details here as I have not used it in a long time, and when not doing ROS, I preferred other libraries.
Good luck and again hopefully someone has used this recently will give a better explanation