Is there a function that returns the size, location of the brush, etc? I think this would be useful for scripts that alter the behavior of the brush.
You can get the coords of the cursor with tpt.mousex and tpt.mousey, and the sizes with tpt.brushx, and tpt.brushy.