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

Function isToolReferenceBlock

src/utils/toolSearch.ts:479–486  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

477 * tool_reference is a beta feature not in the SDK types, so we need runtime checks.
478 */
479export function isToolReferenceBlock(obj: unknown): boolean {
480 return (
481 typeof obj === 'object' &&
482 obj !== null &&
483 'type' in obj &&
484 (obj as { type: unknown }).type === 'tool_reference'
485 )
486}
487
488/**
489 * Type guard for tool_reference block with tool_name.

Calls

no outgoing calls

Tested by

no test coverage detected