CIRCLE WITH VARIABLE RADIUS relative to toolz axis

I am setting up an UR10e with a spindle motor to do some milling in plastic.
and i also need to mill some holes. i want to be able to set the center of the hole, and give the radius.
i have used the CIRCLE WITH VARIABLE RADIUS script and it does what i need, but only relative to the base. i need to do the same thing but the circle have to be relative to the tool z axis on the tool x and y plane