Skip to main content
Version: 0.16.1

Function: checkFileScope()

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

Defined in: core/hooks/fileScopeGate.ts:43

The reason to deny toolName with input under scope, or undefined to let it through. Tools other than Read/Write/Edit/Grep are never judged here, and a call without a path is left for the tool itself to reject.

Parameters​

ParameterType
scopeFileScope
toolNamestring
inputRecord<string, unknown>

Returns​

string | undefined