MAIDR JavaScript API
    Preparing search index...

    Function setWebMcpEnabled

    • Applies the reader's general.agentTools setting at once: registers the tools while charts are mounted, or unregisters them, without a reload and without touching the charts.

      One call covers every chart on the page, since the tools are shared; the page's content="off" tag still wins over true.

      Parameters

      • enabled: boolean

        The new setting

      Returns void