{
  "tools": [
    {
      "id": "reset_password",
      "category": "users",
      "label": "Reset User Password",
      "description": "Reset an existing Bookstack user's password. Leave the password field blank to generate a random one — it is shown in the task log.",
      "icon": "🔑",
      "fields": [
        {
          "name": "email",
          "label": "User email",
          "type": "text",
          "placeholder": "user@example.com",
          "required": true
        },
        {
          "name": "password",
          "label": "New password (leave blank to generate)",
          "type": "password",
          "placeholder": "Leave blank for random"
        }
      ]
    },
    {
      "id": "create_account",
      "category": "users",
      "label": "Create User Account",
      "description": "Create a new Bookstack user. Tick \"Make admin\" to grant full admin rights; otherwise the new user gets the default registration role. Leave the password blank to generate a random one.",
      "icon": "👤",
      "fields": [
        {
          "name": "email",
          "label": "Email",
          "type": "text",
          "placeholder": "user@example.com",
          "required": true
        },
        {
          "name": "name",
          "label": "Display name",
          "type": "text",
          "required": true
        },
        {
          "name": "password",
          "label": "Password (leave blank to generate)",
          "type": "password",
          "placeholder": "Leave blank for random"
        },
        {
          "name": "admin",
          "label": "Make admin",
          "type": "checkbox",
          "default": false
        }
      ]
    },
    {
      "id": "list_users",
      "category": "users",
      "label": "List Users",
      "description": "Show every Bookstack user with their roles.",
      "icon": "📋",
      "fields": []
    },
    {
      "id": "delete_user",
      "category": "users",
      "label": "Delete User Account",
      "description": "Permanently delete a user account.",
      "icon": "🗑",
      "destructive": true,
      "confirm": "This cannot be undone.",
      "fields": [
        {
          "name": "email",
          "label": "User email",
          "type": "text",
          "required": true
        }
      ]
    },
    {
      "id": "set_admin",
      "category": "users",
      "label": "Set Admin Status",
      "description": "Promote a user to admin or demote them to a normal user.",
      "icon": "👑",
      "fields": [
        {
          "name": "email",
          "label": "User email",
          "type": "text",
          "required": true
        },
        {
          "name": "admin",
          "label": "Make admin",
          "type": "checkbox",
          "default": false
        }
      ]
    }
  ]
}
