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

Function checkPermissions

src/tools/NotebookEditTool/NotebookEditTool.ts:125–132  ·  view source on GitHub ↗
(input, context)

Source from the content-addressed store, hash-verified

123 return input.notebook_path
124 },
125 async checkPermissions(input, context): Promise<PermissionDecision> {
126 const appState = context.getAppState()
127 return checkWritePermissionForTool(
128 NotebookEditTool,
129 input,
130 appState.toolPermissionContext,
131 )
132 },
133 mapToolResultToToolResultBlockParam(
134 { cell_id, edit_mode, new_source, error },
135 toolUseID,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected