You cannot get that information via the Photoshop API. The listener plug-in will get the completion of commands. When the command has completed, making a type layer in your example, the listener will get called with all the parmaters that made up that layer.