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

Function checkPermissions

src/tools/FileWriteTool/FileWriteTool.ts:135–142  ·  view source on GitHub ↗
(input, context)

Source from the content-addressed store, hash-verified

133 return pattern => matchWildcardPattern(pattern, file_path)
134 },
135 async checkPermissions(input, context): Promise<PermissionDecision> {
136 const appState = context.getAppState()
137 return checkWritePermissionForTool(
138 FileWriteTool,
139 input,
140 appState.toolPermissionContext,
141 )
142 },
143 renderToolUseRejectedMessage,
144 renderToolUseErrorMessage,
145 renderToolResultMessage,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected