Search Contacts
search_contactsUse this when someone the user wants to call or tag in a rule is not in the call history (find_contact found nobody), so their saved phone contacts are the next place to look. Searches the contacts synced from the user's phone by the start of a name (query) and returns up to limit matches (1 to 10, default 5), each with the name and the full number. No match returns an empty contacts list. The number found goes into place_call as phoneNumber, or into a rule's mentions.
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>"
},
"name": "search_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many matches, 1 to 10; default 5. | |
| query | Yes | The start of the name, e.g. "Ravi". |