Moved getTool() into API call getActiveTool().