Search Contacts
contact_searchSearch recent emails to find contacts by name or email fragment, returning matching addresses, message counts, and last-contact times.
Instructions
Find people by name or email fragment. There is no stored contact list: each call runs a bounded, header-only scan of a RECENT window of matching mail, so message_count counts matches inside that window, not an all-time total. Returns display name, address, count and last-contacted time, most recent first. For general or cross-inbox questions ('who do I email most about X?') OMIT inbox_id so every accessible inbox is scanned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Contacts per page. | |
| query | Yes | Name or email fragment, matched case-insensitively against display names and addresses. 'alice' matches 'Alice Smith'. | |
| inbox_id | No | Restricts the scan to one inbox. Set it only when the user named a specific inbox, and never carry one over from an earlier turn. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| total | Yes | ||
| contacts | Yes |