chronica_get_last_seen
Retrieve the last seen timestamp for specified thread types to track recent activity and maintain context across sessions.
Instructions
指定されたスレッドタイプで最後に見た時刻を取得します。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_type | Yes | スレッドタイプ(必須) |
Implementation Reference
- src/chronica/tools.py:435-454 (handler)The handler implementation for the chronica_get_last_seen tool, which validates arguments and calls the store to get the last seen time.
elif name == "chronica_get_last_seen": thread_type = arguments.get("thread_type") if not thread_type: return [types.TextContent( type="text", text=json.dumps({"error": "invalid_thread", "message": "thread_type is required"}, ensure_ascii=False) )] if 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) )] last_seen_time = store.get_last_seen(thread_type) result = {"last_seen_time": last_seen_time} if last_seen_time else {"last_seen_time": None} return [types.TextContent( type="text", text=json.dumps(result, ensure_ascii=False) )] - src/chronica/tools.py:152-162 (schema)The schema definition for the chronica_get_last_seen tool.
inputSchema={ "type": "object", "properties": { "thread_type": { "type": "string", "enum": ["normal", "project"], "description": "スレッドタイプ(必須)" } }, "required": ["thread_type"] }