{ "tools": [ { "id": "create_account", "category": "users", "label": "Create User Account", "description": "Register an account and finish its onboarding, so it can sign in straight away.", "icon": "👤", "fields": [ { "name": "email", "label": "Email", "type": "text", "placeholder": "user@stoat.local", "required": true }, { "name": "password", "label": "Password", "type": "password", "placeholder": "Leave blank to generate" }, { "name": "username", "label": "Username (handle)", "type": "text", "placeholder": "Defaults to the part before @" } ] }, { "id": "reset_password", "category": "users", "label": "Reset User Password", "description": "Set a new password for an existing account. Stoat hashes it, so the account stays usable.", "icon": "🔑", "fields": [ { "name": "username", "label": "Username or email", "type": "text", "required": true }, { "name": "password", "label": "New password", "type": "password", "placeholder": "Leave blank to generate" } ] }, { "id": "list_users", "category": "users", "label": "List Users", "description": "Every Stoat account, with its email and whether it is disabled.", "icon": "📋", "fields": [] }, { "id": "delete_user", "category": "users", "label": "Disable User Account", "description": "Block sign-in without deleting the account or its messages. Reversible.", "icon": "🚫", "destructive": true, "confirm": "The user will not be able to sign in again until re-enabled.", "fields": [ { "name": "username", "label": "Username or email", "type": "text", "required": true } ] }, { "id": "enable_user", "category": "users", "label": "Enable User Account", "description": "Undo a disable and let the account sign in again.", "icon": "✅", "fields": [ { "name": "username", "label": "Username or email", "type": "text", "required": true } ] } ] }