code: function getFrameOfReferenceSpecificToolState(frameOfReference, toolType) {
      // If we don't have any tool state for this frame of reference, return undefined
      if (toolState.hasOwnProperty(frameOfReference) === false) {
        return;
      }
  
      const frameOfReferenceToolState = toolState[frameOfReference];
  
      // If we don't have tool state for this type of tool, return undefined
      if (frameOfReferenceToolState.hasOwnProperty(toolType) === false) {
        return;
      }
  
      const toolData = frameOfReferenceToolState[toolType];
  
      return toolData;
    }
docs: Here you can get state - used by tools as well as modules That save state persistently