nexus_list_keystones
Retrieve available NEXUS Keystone backups from WorkFlowy to restore or manage hierarchical data structures.
Instructions
List all available NEXUS Keystone backups.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/workflowy_mcp/server.py:2276-2285 (registration)MCP tool registration for 'nexus_list_keystones' which delegates to the client implementation.@mcp.tool( name="nexus_list_keystones", description="List all available NEXUS Keystone backups." ) def nexus_list_keystones() -> dict: """List all available NEXUS Keystone backups.""" client = get_client() return client.nexus_list_keystones()
- Core handler implementation: scans hardcoded backup directory for .json files, parses filename format into structured keystone metadata, returns sorted list.def nexus_list_keystones(self) -> dict[str, Any]: """List NEXUS Keystone backups.""" backup_dir = r"E:\__daniel347x\__Obsidian\__Inking into Mind\--TypingMind\Projects - All\Projects - Individual\TODO\temp\nexus_backups" if not os.path.exists(backup_dir): return {"success": True, "keystones": [], "message": "No backup dir"} keystones = [] for filename in os.listdir(backup_dir): if filename.endswith(".json"): parts = filename.replace('.json', '').split('-') if len(parts) >= 3: keystones.append({ "keystone_id": parts[-1], "timestamp": parts[0], "node_name": "-".join(parts[1:-1]), "filename": filename }) return { "success": True, "keystones": sorted(keystones, key=lambda k: k['timestamp'], reverse=True) }