G10. Look at the Milling Manual in the docs folder to get the syntax. Some CAM programs will export the tool table into a G code file that includes G10. Then the G code program is simply run once to set the tool table.
If your CAM program can only output the .CSV file, then you could write a "translator" in LUA script to go from the .CSV contents to G code with G10.
The other way would be to read the .CSV file in a LUA script and use the API to modify the tool table.
Steve