import json
p = '/home/claude/.claude/projects/-home-claude-repos-openclaw/073e41f8-4452-46d4-8e24-d3bbd156a02c/tool-results/toolu_019SP1GYe59vAa9mE16JeNwP.json'
d = json.load(open(p))
o = json.loads(d[0]['text'])
recs = o['records']
m = []
for r in recs:
    c = r.get('contact') or {}
    fn = (c.get('firstName') or '').lower()
    ln = (c.get('lastName') or '').lower()
    if 'sabrina' in fn or 'sabrina' in ln:
        m.append(r)
print('TOTAL_USERS', len(recs))
print('MATCHES', len(m))
for r in m:
    c = r.get('contact') or {}
    print('MATCH', 'id=' + str(r['id']), 'ext=' + str(r.get('extensionNumber')),
          'name=' + str(c.get('firstName')) + ' ' + str(c.get('lastName')),
          'title=' + str(c.get('jobTitle')), 'status=' + str(r.get('status')))
