Update Custom Data
update-custom-dataReplace the value of an existing custom field on a Chatway visitor/contact. Use add-custom-data when the field does not exist. Use list-custom-fields to check the exact field name first.
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": {
"visitor_id": "<visitor_id>",
"name": "<name>",
"value": "<value>"
},
"name": "update-custom-data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the existing custom field to update, up to 100 characters. | |
| value | Yes | New value that replaces the current one, up to 1,000 characters. | |
| visitor_id | Yes | UUID of the visitor/contact, for example `contact.id` from `get-conversation` or `id` from `search-contacts`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Custom field name. | |
| value | No | New stored value. | |
| visitor_id | No | Visitor/contact UUID. |