How to disable current selected tool on clicking or dragging any html button

I am using
polygonDrawingTool,
diagram.toolManager.mouseDownTools.insertAt(0, polygonDrawingTool);
and
dragCreatingTool
diagram.toolManager.mouseMoveTools.insertAt(2, dragCreatingTool);

I want to disable the tool before any addEventListener

Set Tool.isEnabled to false. Tool | GoJS API