retell_end_chat
Terminate an active chat session to manage conversation flow and free up resources on the Retell AI platform.
Instructions
End an active chat session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | The chat session ID to end |
Implementation Reference
- src/index.ts:1149-1150 (handler)Handler implementation for retell_end_chat tool: sends PATCH request to Retell API /end-chat endpoint with provided arguments.case "retell_end_chat": return retellRequest("/end-chat", "PATCH", args);
- src/index.ts:298-310 (schema)Input schema for retell_end_chat tool defining the required chat_id parameter.name: "retell_end_chat", description: "End an active chat session.", inputSchema: { type: "object", properties: { chat_id: { type: "string", description: "The chat session ID to end" } }, required: ["chat_id"] } },
- src/index.ts:1283-1285 (registration)Registration of the tools list handler which includes the retell_end_chat tool schema in the returned tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });