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

Function isToolResultBlock

src/services/api/claude.ts:3040–3050  ·  view source on GitHub ↗
(
  block: unknown,
)

Source from the content-addressed store, hash-verified

3038}
3039
3040function isToolResultBlock(
3041 block: unknown,
3042): block is { type: 'tool_result'; tool_use_id: string } {
3043 return (
3044 block !== null &&
3045 typeof block === 'object' &&
3046 'type' in block &&
3047 (block as { type: string }).type === 'tool_result' &&
3048 'tool_use_id' in block
3049 )
3050}
3051
3052type CachedMCEditsBlock = {
3053 type: 'cache_edits'

Callers 1

addCacheBreakpointsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected