update_whatsapp_agent
Update the exact WhatsApp agent after reading it and confirming the selected account, agent, and exact changes. Explain activation, new-chat/contact behavior, audience/capability changes, and cleared text/arrays. For autoMarkMessagesRead, omission preserves the current value; false disables both Meta read receipts and typing while AI replies continue, but does not guarantee linked-client notifications. Resolve group IDs using list_contact_groups. Omitted fields stay unchanged. Requires fresh whatsapp_agents:write consent. Reuse the same idempotencyKey, updates, and expectedRevision on retry; on REVISION_CONFLICT, read and propose again. Read back after success. Saving affects future turns and sends no message.
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": {
"agentId": "<agentId>",
"updates": "<updates>",
"expectedRevision": "<expectedRevision>",
"confirmed": "<confirmed>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "update_whatsapp_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ||
| updates | Yes | ||
| confirmed | Yes | Must be true only after the user explicitly confirms this exact operation | |
| idempotencyKey | Yes | A unique identifier generated once for this intended write. Reuse exactly when retrying. | |
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| success | No |