setActiveTool(%slot) - 0 to 4. (Or player datablock maxtools...) It CAN let you use a nonexistant slot, highlighting it but no errors. Won't open the menu if it isn't open already.
useTools(1) - Opens the items menu.
servercmdUseTool(%client,%slot) - No highlighting or opening menu, but does the same.