Skip to main content
Version: 0.21.0

Function: checkPlanScope()

function checkPlanScope(
scope,
toolName,
input
): string | undefined;

Defined in: core/hooks/planGate.ts:31

The reason to deny toolName with input in plan mode, or undefined to let it through. Anything not known to only read is denied, so a tool nobody thought of can't change anything while the human reviews the plan.

Parameters​

ParameterType
scopePlanScope
toolNamestring
inputRecord<string, unknown>

Returns​

string | undefined