Gokapi Users
gokapi_usersManage Gokapi users by creating accounts, deleting users, changing ranks, granting or revoking permissions, and resetting passwords through a single operation-based tool.
Instructions
gokapi users operations on Gokapi. Pass operation and an arguments dict matching that operation's parameters.
gokapi_user_changerank(userid, new_rank) - Change a user's rank (PUT /api/user/changeRank). new_rank is admin or user.
gokapi_user_create(username) - Create a new user (POST /api/user/create). Returns the new user including its generated password.
gokapi_user_delete(userid, delete_files=None) - Delete a user (DELETE /api/user/delete). Set delete_files=true to also delete all their uploads.
gokapi_user_modify(userid, userpermission, permission_modifier) - Grant/revoke one user permission (PUT /api/user/modify). userpermission is one of PERM_REPLACE, PERM_LIST, PERM_EDIT, PERM_REPLACE_OTHER, PERM_DELETE, PERM_LOGS, PERM_API, PERM_USERS, PERM_GUEST_UPLOAD; permission_modifier is GRANT or REVOKE.
gokapi_user_resetpassword(userid, generate_new_password=None) - Reset a user's password (PUT /api/user/resetPassword). Returns the new password.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "gokapi_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |