get_contact
Looks up a WhatsApp contact using a phone number, LID, or full JID, automatically detecting the identifier type and returning resolved contact details.
Instructions
Look up a WhatsApp contact by phone number, LID, or full JID.
Automatically detects the identifier type and queries appropriately.
Args:
identifier: Phone number, LID, or full JID. Examples:
- "12025551234" (phone number)
- "184125298348272" (LID - long numeric)
- "12025551234@s.whatsapp.net" (phone JID)
- "184125298348272@lid" (LID JID)
phone_number: Backward-compatible alias for identifier.
phone: Backward-compatible alias for identifier (matches README parameter name).
Returns: Dictionary with jid, name, display_name, is_lid, and resolved status
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": "get_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | ||
| identifier | No | ||
| phone_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||