Close and archive chat
Stop an active chat and move it to Archives.
MCP tool livechat_write → archive_chat
write Confirm
Closes one chat the way Close and archive does in My chats, and the chat moves to Archives with its tags. Tag the chat first, because Archives and tag reports use the tags. 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. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "livechat_write",
"arguments": {
"operation": "archive_chat",
"arguments": {
"chat_id": "chat_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"chat_id": "PJ0MRSHTDG",
"status": "archived",
"tags": [
"refund"
]
},
"isError": false
}