contacts_write
Merge, split, update consent of, or delete a contact. merge and delete cannot be undone automatically — confirm with the user. Actions: merge — merge two contacts that are the same person Needs: sourceIdentityId, targetIdentityId. | unmerge — split conversations out of a contact Needs: identityId, convoIds. | set_consent — record the contact marketing consent Needs: identityId, consentStatus. | delete — delete the contact record Needs: identityId.
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": {
"action": "<action>",
"agentId": "<agentId>"
},
"name": "contacts_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | compact (default) = light mode: long text is cut and bulky blobs are replaced by a size marker. full = complete API response. | |
| action | Yes | ||
| agentId | Yes | ||
| convoIds | No | For unmerge: conversations to split into a new contact. | |
| identityId | No | ||
| consentSource | No | Where the consent came from, e.g. "web form". | |
| consentStatus | No | ||
| sourceIdentityId | No | For merge: the contact that disappears. | |
| targetIdentityId | No | For merge: the contact that is kept. |