I have looked at doing this myself, i am not sure if it is possible to even DO without using leftclick inputs on a createpath. (i sure could be wrong no expert at this at all)..
I dug through the commands that can be sent to the game and i can't find ones to do two things so far,
First is putting tools directly onto the pet to use (the aaxe,spades,picks),
Second is selecting that output to make
I have found ways to start production, stop production and one to harvest the things made....
The way i have it now is i have everything being done by left clicks with 1000MS yrests between the clicks and a 1,090,000 yrest between the start of the production and the harvesting when it finished using 99 tools.
If you wanna make a file simillar to mine i do as follows, i have 1 empty backpack tab (all 30 slots) i put 30 tools in there then i recorded the following left clicks
Left click on tool
Left click tool onto pet production tab adding it to be used
Left click on drop down button for what is being produced
left click on drop down box to select highest level item to be produced
left click start production
*use a yrest 1,090,000 here*
left click on harvest produced items
left click on the sort items in backpack
in that order it works great.. as i said put a yrest of 1 second (1000ms) between each command just to be safe.. and also you might want to had a yrest of 10 or so seconds to the start before
any left clicks just to give you time to get focus back onto the game window once you start the script
This is a VERY dirty method, but it gets the job done

i am sure one of the better guys here may know a way to add tools to the pet tab and to select what to produce without having to use left click inputs. If that is the case there may be a way to write an Addon for the game and not even use Micromacro, and the addon might be able to do it non-stop in the background as long as you have one type of tool available in the backpack(this is my dream method btw)
*edit*
I am so inconsiderate.. just realized i forgot to say
"condolences to your family and to yourself Rock5, i have used many things you have coded here and love the work you do, thank you very much!"