MCPcopy Index your code
hub / github.com/codeaashu/claude-code / checkPermissions

Function checkPermissions

src/tools/FileReadTool/FileReadTool.ts:398–405  ·  view source on GitHub ↗
(input, context)

Source from the content-addressed store, hash-verified

396 return pattern => matchWildcardPattern(pattern, file_path)
397 },
398 async checkPermissions(input, context): Promise<PermissionDecision> {
399 const appState = context.getAppState()
400 return checkReadPermissionForTool(
401 FileReadTool,
402 input,
403 appState.toolPermissionContext,
404 )
405 },
406 renderToolUseMessage,
407 renderToolUseTag,
408 renderToolResultMessage,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected