MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / canUseTool

Function canUseTool

source code/utils/queryHelpers.ts:280–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 }
279
280 const canUseTool: CanUseToolFn = async () => ({
281 ...permissionResult,
282 decisionReason: {
283 type: 'mode',
284 mode: 'default' as const,
285 },
286 })
287
288 // Add the assistant message with tool_use to messages BEFORE executing
289 // so the conversation history is complete (tool_use -> tool_result).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected