append_to_conversation
Add messages to existing conversations in the Pensieve MCP Server to maintain continuity and build comprehensive dialogue histories across AI platforms.
Instructions
기존 대화에 메시지를 추가합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conversation_id | Yes | 대화 ID | |
| messages | Yes | 추가할 메시지 목록 |
Implementation Reference
- mcp_server/server_api.py:342-360 (handler)The handler logic for 'append_to_conversation', which calls an external API to append messages to a conversation.
elif name == "append_to_conversation": conversation_id = arguments["conversation_id"] messages = arguments["messages"] response = await client.post( f"/conversations/{conversation_id}/messages", json=messages ) if response.status_code == 200: return [TextContent( type="text", text=f"대화에 {len(messages)}개의 메시지가 추가되었습니다." )] else: return [TextContent( type="text", text=f"메시지 추가 실패: {response.text}" )] - mcp_server/server_api.py:108-123 (registration)The MCP tool definition and registration for 'append_to_conversation'.
Tool( name="append_to_conversation", description="기존 대화에 메시지를 추가합니다", inputSchema={ "type": "object", "properties": { "conversation_id": { "type": "string", "description": "대화 ID" }, "messages": { "type": "array", "description": "추가할 메시지 목록", "items": { "type": "object", "properties": {