Overview
File:src/tools/UserDataTool.ts
Simple tools demonstrating the User API for accessing and updating user profiles.
Tools Included
GetUserDataTool
Retrieve current user’s information.UpdateUserDataTool
Update user profile information.Use Cases
Personalized Greeting
User Preferences
Using save() Method (New!)
Sending Messages to Users (New!)
Sending Images and Files (New!)
What You’ll Learn
Platform APIs
Using Lua’s built-in User API
Chaining Operations
Get instance, then call methods
Partial Updates
Update only specified fields
save() Method
Simpler workflow for multiple changes
Messaging Users
Send proactive notifications
Media Support
Send images and files to users

