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

Parameters: archive_chat
NameTypeDescription
chat_id string required string Chat ID from list_chats or list_archived_chats.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "livechat_write",
    "arguments": {
      "operation": "archive_chat",
      "arguments": {
        "chat_id": "chat_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "chat_id": "PJ0MRSHTDG",
    "status": "archived",
    "tags": [
      "refund"
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.