MCPcopy
hub / github.com/claude-code-best/claude-code / getTotalInputTokens

Function getTotalInputTokens

src/bootstrap/state.ts:698–700  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

696}
697
698export function getTotalInputTokens(): number {
699 return sumBy(Object.values(STATE.modelUsage), 'inputTokens')
700}
701
702export function getTotalOutputTokens(): number {
703 return sumBy(Object.values(STATE.modelUsage), 'outputTokens')

Callers 4

saveCurrentSessionCostsFunction · 0.85
hasPermissionsToUseToolFunction · 0.85
REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected