delete_conversation
Permanently remove a conversation from the Tavus MCP Server using its unique identifier to manage video generation and AI interactions.
Instructions
Delete a conversation permanently
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conversation_id | Yes | Unique identifier for the conversation |
Implementation Reference
- src/index.ts:936-945 (handler)The deleteConversation method is the handler that executes the delete_conversation tool logic. It extracts conversation_id from args, makes a DELETE request to /conversations/{conversation_id}, and returns a success message.
private async deleteConversation(args: any) { const { conversation_id } = args; await this.axiosInstance.delete(`/conversations/${conversation_id}`); return { content: [{ type: 'text', text: `Successfully deleted conversation ${conversation_id}`, }], }; } - src/index.ts:428-441 (registration)Registration of the delete_conversation tool with its name, description, and inputSchema defining the required conversation_id parameter.
{ name: 'delete_conversation', description: 'Delete a conversation permanently', inputSchema: { type: 'object', properties: { conversation_id: { type: 'string', description: 'Unique identifier for the conversation', }, }, required: ['conversation_id'], }, }, - src/index.ts:724-725 (helper)Switch case routing that maps the 'delete_conversation' tool name to the deleteConversation handler method.
case 'delete_conversation': return await this.deleteConversation(request.params.arguments);