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

Function canUseTool

src/utils/queryHelpers.ts:278–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276 }
277
278 const canUseTool: CanUseToolFn = async () => ({
279 ...permissionResult,
280 decisionReason: {
281 type: 'mode',
282 mode: 'default' as const,
283 },
284 })
285
286 // Add the assistant message with tool_use to messages BEFORE executing
287 // 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