MCPcopy
hub / github.com/codeaashu/claude-code / getToolResultPath

Function getToolResultPath

src/utils/toolResultStorage.ts:114–117  ·  view source on GitHub ↗
(id: string, isJson: boolean)

Source from the content-addressed store, hash-verified

112 * Get the filepath where a tool result would be persisted.
113 */
114export function getToolResultPath(id: string, isJson: boolean): string {
115 const ext = isJson ? 'json' : 'txt'
116 return join(getToolResultsDir(), `${id}.${ext}`)
117}
118
119/**
120 * 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