Usually %datablock then %obj as the object created.
trace(1);, call the function in a normal way (spawn the item, etc), trace(0);, look in console at the function and the IDs given to it. Find the objects/datablocks with those IDs if they are in the hundreds, what is at that position if it is a large 3 or 7-word string, and what the colour is if it is four 0-1 values.