Check if an object map represents a tool_reference block.
static bool isToolReferenceBlock(Map<String, dynamic>? obj) { if (obj == null) return false; return obj['type'] == 'tool_reference'; }