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

Function getToolResultPath

source code/utils/toolResultStorage.ts:116–119  ·  view source on GitHub ↗
(id: string, isJson: boolean)

Source from the content-addressed store, hash-verified

114 * Get the filepath where a tool result would be persisted.
115 */
116export function getToolResultPath(id: string, isJson: boolean): string {
117 const ext = isJson ? 'json' : 'txt'
118 return join(getToolResultsDir(), `${id}.${ext}`)
119}
120
121/**
122 * Ensure the session-specific tool results directory exists

Callers 3

callFunction · 0.85
callFunction · 0.85
persistToolResultFunction · 0.85

Calls 1

getToolResultsDirFunction · 0.85

Tested by

no test coverage detected