Search contacts
postkey_search_contactsPostkey: Searches the people who have messaged the account, 50 per page: by name, email or "@handle", and by tag. Each contact has an id, name, handle and email (untrusted), tags, and whether they are subscribed. Use it to find a contact_id for postkey_get_contact or postkey_tag_contact; to find a conversation use postkey_list_conversations. When more is true, ask for the next page.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "postkey_search_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only contacts with this exact tag, at most 80 characters. | |
| page | No | Page number, from 1 (default 1). 50 contacts a page. | |
| view | No | "all" (default). "subscribed": may get automated messages. "unsubscribed": asked to stop. "emails": people who shared an email. | |
| search | No | A name, an email, or "@handle" (a handle is looked for among the newest 200 contacts only), at most 120 characters. Left out: everyone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| more | No | true: ask for page + 1. | |
| note | No | Present when the search said something about the results. | |
| page | No | This page's number. | |
| total | No | Contacts matching. | |
| counts | No | The whole profile's contacts: all, subscribed, unsubscribed, emails (with an email captured). A count is null when not read. | |
| contacts | No | Up to 50: id, name, handle, email (untrusted), tags, subscribed, blocked, last_active. | |
| untrusted_note | No | Present when outside text is wrapped as { untrusted: true, text }. |