import json # Check what's actually in the file with open(r'C:\DEV\COPILOT\geutebruck-api\all_actions_catalog.json') as f: data = json.load(f) print(f"Total actions in file: {len(data)}") # Count by category categories = {} for action_name, action_data in data.items(): cat = action_data.get('category', 'Other') if cat not in categories: categories[cat] = [] categories[cat].append(action_name) print(f"\nCategories: {len(categories)}") for cat in sorted(categories.keys()): print(f" - {cat}: {len(categories[cat])} actions") if 'Imex' in categories: print(f"\n[OK] Imex category found with {len(categories['Imex'])} actions:") for action in categories['Imex']: print(f" - {action}") else: print("\n[ERROR] No Imex category!")