MCPcopy Index your code
hub / github.com/codeaashu/claude-code / processPreMappedToolResultBlock

Function processPreMappedToolResultBlock

src/utils/toolResultStorage.ts:232–242  ·  view source on GitHub ↗
(
  toolResultBlock: ToolResultBlockParam,
  toolName: string,
  maxResultSizeChars: number,
)

Source from the content-addressed store, hash-verified

230 * without re-calling mapToolResultToToolResultBlockParam.
231 */
232export async function processPreMappedToolResultBlock(
233 toolResultBlock: ToolResultBlockParam,
234 toolName: string,
235 maxResultSizeChars: number,
236): Promise<ToolResultBlockParam> {
237 return maybePersistLargeToolResult(
238 toolResultBlock,
239 toolName,
240 getPersistenceThreshold(toolName, maxResultSizeChars),
241 )
242}
243
244/**
245 * True when a tool_result's content is empty or effectively empty. Covers:

Callers 1

addToolResultFunction · 0.85

Calls 2

getPersistenceThresholdFunction · 0.85

Tested by

no test coverage detected