@backblaze-labs/b2-mcp
    Preparing search index...

    Function runWithDestructiveElicitationConsent

    • Run a callback with wrapper-validated destructive elicitation consent.

      Type Parameters

      • T

      Parameters

      • toolName: string

        MCP tool name approved by elicitation.

      • argsDigest: string

        Canonical digest of the approved destructive target.

      • callback: () => T

        Work to execute with consent installed.

      Returns T

      The callback result.

      The consent is scoped to the exact tool name and canonical target-argument digest. The inner handler still calls checkDestructive; this context simply tells the gate that human approval was already validated by the shared wrapper.