Update labels
update_labelsAdd and/or remove labels on a conversation or contact. Refuses AI send-block (ai_send_block) and human-protected (ai_protected) labels in both directions. Pass expected_version (label_version from get_conversation / get_contact) for conflict-safe updates. Exclusive label groups are enforced — adding a label may replace its mutex-group siblings (reported in mutex_removed).
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": {
"target_type": "<target_type>",
"target_id": "<target_id>"
},
"name": "update_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | ||
| remove | No | ||
| target_id | Yes | ||
| target_type | Yes | ||
| expected_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | ||
| target_id | Yes | ||
| target_type | Yes | ||
| label_version | Yes | ||
| mutex_removed | Yes |