start_new_session
Clear previous conversation logs to begin a fresh journaling session, receiving a welcome message with the current save location.
Instructions
Start a new journaling session by clearing previous conversation log.
Returns: str: Welcome message with current save location
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:129-139 (handler)The 'start_new_session' tool handler, registered via @mcp.tool() decorator. Clears the global conversation_log and returns a confirmation message with the journal directory path.@mcp.tool() async def start_new_session() -> str: """ Start a new journaling session by clearing previous conversation log. Returns: str: Welcome message with current save location """ conversation_log.clear() return f"New journaling session started. Entries will be saved to {config.journal_dir}"