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 and drops the moves and commands agents kept for the reader, without a reload and without touching the charts otherwise.

      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