It’s already done. We have a sample profile on our website. Download the Multimaterial profile and look in the scripts tab. There you’ll see a start script from memory which is essentially the magic required to make tool changing work. Under the advanced tab? You’ll see a tool change retraction distance option. It should already be set. Now it’s just a matter of selecting the tool head you’d like to use for each part of the print (perimeters- tool1 and infill tool2 for example).
Not in the office till the 2nd so going off my memory with those menu names at the moment.