You should add //set hand, //replace hand, etc. Instead of typing in the block name or id, it will get the block id in your hand and replace it with that.