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

Function canUseTool

src/services/AgentSummary/agentSummary.ts:94–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93 // Deny tools via callback, NOT by passing tools:[] - that busts cache
94 const canUseTool = async () => ({
95 behavior: 'deny' as const,
96 message: 'No tools needed for summary',
97 decisionReason: { type: 'other' as const, reason: 'summary only' },
98 })
99
100 // DO NOT set maxOutputTokens here. The fork piggybacks on the main
101 // thread's prompt cache by sending identical cache-key params (system,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected