chronica_timeline
Retrieve timeline entries for specified time periods to review daily activities or summarize weekly events, enabling structured memory recall across sessions.
Instructions
指定期間のタイムラインを取得します。
【使用タイミング】
「今日の振り返り」「この1週間の出来事をまとめて」と依頼されたとき
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_time | No | 開始時刻(ISO文字列、JST) | |
| end_time | No | 終了時刻(ISO文字列、JST) | |
| thread_id | No | スレッドID(指定時はthread_typeより優先) | |
| thread_type | No | スレッドタイプ | |
| kind | No | エントリ種別 | |
| limit | No | 最大件数 |
Implementation Reference
- src/chronica/tools.py:415-432 (handler)The handler for 'chronica_timeline' which extracts arguments and calls the store.timeline method.
elif name == "chronica_timeline": thread_type = arguments.get("thread_type") if thread_type and thread_type not in ["normal", "project"]: return [types.TextContent( type="text", text=json.dumps({"error": "invalid_thread", "message": f"thread_type must be 'normal' or 'project', got: {thread_type}"}, ensure_ascii=False) )] entries = store.timeline( start_time=arguments.get("start_time"), end_time=arguments.get("end_time"), thread_type=thread_type, kind=arguments.get("kind"), limit=arguments.get("limit", 100) ) return [types.TextContent( type="text", text=json.dumps({"entries": entries}, ensure_ascii=False, indent=2) - src/chronica/tools.py:110-137 (schema)The Tool definition and schema for 'chronica_timeline'.
types.Tool( name="chronica_timeline", description=""" 指定期間のタイムラインを取得します。 【使用タイミング】 - 「今日の振り返り」「この1週間の出来事をまとめて」と依頼されたとき """, inputSchema={ "type": "object", "properties": { "start_time": { "type": "string", "description": "開始時刻(ISO文字列、JST)" }, "end_time": { "type": "string", "description": "終了時刻(ISO文字列、JST)" }, "thread_id": { "type": "string", "description": "スレッドID(指定時はthread_typeより優先)" }, "thread_type": { "type": "string", "enum": ["normal", "project"], "description": "スレッドタイプ" },