save_conversation_context
Save conversation summary and turns for later recall
Save a conversation summary and optionally individual turns for later semantic search. Requires ENABLE_CONVERSATIONS=true (default).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
summary | string | REQUIRED | - | Conversation summary (1-10000 chars) |
sessionKey | string | OPTIONAL | auto-generated | Key to identify this conversation (1-200 chars) |
title | string | OPTIONAL | - | Title for this conversation (max 500 chars) |
recentTurns | array | OPTIONAL | - | Recent turns to save (max 50) |
embedTurns | boolean | OPTIONAL | false | Generate embeddings for individual turns |
Each turn in recentTurns has:
role:user,assistant, orsystemcontent: The message content (max 50000 chars)
Example Request
Errors
| Error | Cause | Fix |
|---|---|---|
| Conversations not enabled | ENABLE_CONVERSATIONS is false | Set ENABLE_CONVERSATIONS=true |
| Database not configured | Missing Supabase credentials | Set SUPABASE_URL and SUPABASE_SERVICE_KEY |
Related Tools
query_conversations- Search, get, or list past conversationsdelete_conversation- Delete a conversation session