Send message
Reply to the customer in a chat, as you.
MCP tool livechat_write → send_message
write Confirm
Sends a message to the customer in one chat, under your agent name. Pass canned_response to send the text of a canned response with its variables filled in. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| chat_id string required | string | Chat ID from list_chats or list_archived_chats. |
| body string required | string | Message text. |
| canned_response string | string | Response ID from list_canned_responses. Replaces body. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "livechat_write",
"arguments": {
"operation": "send_message",
"arguments": {
"chat_id": "PJ0MRSHTDG",
"body": "Hi Lena, thanks for writing. Could you send me your order number so I can check the delivery?"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"chat_id": "PJ0MRSHTDG",
"event_id": "ev_5530",
"status": "sent",
"sent_at": "2026-10-17T07:02:00+02:00"
},
"isError": false
}