chronica_create_thread
Create a new thread in Chronica's persistent memory system to organize conversations and projects across sessions with time-aware context.
Instructions
新しいスレッドを作成します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_name | Yes | スレッド名 | |
| thread_type | No | スレッドタイプ |
Implementation Reference
- src/chronica/tools.py:493-510 (handler)The handler implementation for 'chronica_create_thread' within the 'call_tool' function.
elif name == "chronica_create_thread": thread_name = arguments.get("thread_name") thread_type = arguments.get("thread_type", "normal") if not thread_name: return [types.TextContent( type="text", text=json.dumps({"error": "validation_error", "message": "thread_name is required"}, ensure_ascii=False) )] if thread_type not in ["normal", "project"]: thread_type = "normal" thread_id = store.create_thread(thread_name, thread_type) return [types.TextContent( type="text", text=json.dumps({"thread_id": thread_id, "thread_name": thread_name, "thread_type": thread_type}, ensure_ascii=False) )] - src/chronica/tools.py:256-274 (schema)The tool registration and schema definition for 'chronica_create_thread'.
types.Tool( name="chronica_create_thread", description="新しいスレッドを作成します。", inputSchema={ "type": "object", "properties": { "thread_name": { "type": "string", "description": "スレッド名" }, "thread_type": { "type": "string", "enum": ["normal", "project"], "description": "スレッドタイプ" } }, "required": ["thread_name"] } ),