add_labels_to_contact
Replace a contact's labels with the complete list you provide, updating its Chatwoot categorization in one call.
Instructions
Set labels on a contact. Provide the full list of labels that should be applied (replaces existing labels).
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": {
"contact_id": "<contact_id>",
"labels": "<labels>"
},
"name": "add_labels_to_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | Label names to apply to the contact | |
| account_id | No | Chatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var. | |
| contact_id | Yes | The contact ID |