contacts_discover
Search for a contact on a live channel (Telegram, WhatsApp, etc.) before adding them. Use this to look up a person by username or phone number before calling contacts.sync. This is the right tool when asked to add or find a specific person by @username or phone (use contacts.sync afterwards to actually add them) — not group_discovery. On cvent it searches the attendees of the account's event by name or company ('*' for everyone, up to 100; narrow the query for more) and contacts.sync is not needed: each result's identifier is the recipient for messages.send. On viber, query is a phone number (+380...): it tells whether the number has Viber, without writing to it (one result if it does, none if not); the result's identifier is the recipient for messages.send.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"channel": "<channel>"
},
"name": "contacts_discover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Username, phone, or name to search for | |
| channel | Yes | Channel name: telegram, whatsapp, etc. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| from_account_id | No | Which of the workspace's accounts on this channel runs the search (channels.list gives the ids). OMIT and the platform picks one. The answer's account_id names the account actually used. An account outside this workspace is refused, never swapped. |