clear_conversation
Remove conversation history for a specific conversation ID to manage storage and maintain privacy in the NanoBanana MCP server.
Instructions
Clear conversation history for a specific conversation ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conversation_id | Yes | The conversation ID to clear |
Implementation Reference
- src/index.ts:996-1008 (handler)The handler implementation for the 'clear_conversation' tool, which deletes a conversation from the 'conversations' map based on the provided conversation_id.
case "clear_conversation": { const { conversation_id } = args as any; conversations.delete(conversation_id); return { content: [ { type: "text", text: `Conversation history cleared for ID: ${conversation_id}`, }, ], }; } - src/index.ts:407-417 (schema)The tool registration and schema definition for 'clear_conversation' in the list of available MCP tools.
{ name: "clear_conversation", description: "Clear conversation history for a specific conversation ID", inputSchema: { type: "object", properties: { conversation_id: { type: "string", description: "The conversation ID to clear", }, },