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

Function checkPermissions

src/tools/GrepTool/GrepTool.ts:233–240  ·  view source on GitHub ↗
(input, context)

Source from the content-addressed store, hash-verified

231 return { result: true }
232 },
233 async checkPermissions(input, context): Promise<PermissionDecision> {
234 const appState = context.getAppState()
235 return checkReadPermissionForTool(
236 GrepTool,
237 input,
238 appState.toolPermissionContext,
239 )
240 },
241 async prompt() {
242 return getDescription()
243 },

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected