Tag and annotate a contact
update_contact_detailsUpdate a contact's local details by adding or removing tags and setting key-value fields like role or city. Changes stay in the registry and are not sent to WhatsApp.
Instructions
File local, searchable details on a person: tags like "client" or "echipa", and key-value fields like {"role": "contabil", "oras": "Cluj"}. This is how "the accountant" or "all suppliers" resolve later — search_contacts matches tag and field text, and its tag filter lists everyone carrying one. Nothing is sent to WhatsApp: the contact never sees it and the phone is unchanged. A field set to "" is deleted; remove_tags / remove_fields take keys away. Pass at least one of the four edits. The person need not be a saved contact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Details to set, e.g. {"role": "contabil"}; an empty value deletes the key | |
| add_tags | No | Tags to file under, e.g. ["client", "echipa"]; lowercase tokens, "#" optional | |
| account_id | No | Registry account id (default, work, …). Omit to resolve from chat_id or message_id, or the default account. | |
| contact_id | Yes | Contact id or phone number | |
| remove_tags | No | Tags to take off | |
| remove_fields | No | Detail keys to delete |