Files
troupe-standup/wizard-work/spark/list_tools.py
T

21 lines
635 B
Python

#!/usr/bin/env python3
"""List available Hermes tools."""
from hermes_tools import tool_search
import json
# Search for tool categories
cats = ['coding', 'content', 'data', 'communication', 'web', 'file', 'system', 'development']
results = {'tools_found': []}
for cat in cats:
try:
r = tool_search(queries=[cat], limit=3)
if 'tools' in r:
for t in r['tools']:
results['tools_found'].append({'name': t.get('name'), 'description': t.get('description')})
except Exception as e:
pass
print(json.dumps(results, indent=2))
print(f"\nTOTAL TOOLS: {len(results['tools_found'])}")