headscale_users
Create, list, rename, or delete users on a self-hosted Headscale server. Writes use dry-run previews and require confirmation; deletion removes the user's nodes and keys.
Instructions
headscale_users calls the users toolset on a self-hosted Headscale server (4 actions). Authorization is Bearer. Writes need confirm set to the boolean true and HEADSCALE_ALLOW_WRITES=true. Omit confirm for a dry-run preview that does not send the write. Warnings: This deletes a user and the nodes and keys that belong to that user. Actions: create_user: POST /api/v1/user. Create a user. delete_user: DELETE /api/v1/user/{id}. Delete a user. list_users: GET /api/v1/user. List users. rename_user: POST /api/v1/user/{oldId}/rename/{newName}. Rename a user.
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": {
"action": "<action>"
},
"name": "headscale_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for the Headscale operation. Secrets are redacted in previews. | |
| query | No | OpenAPI query parameters. | |
| action | Yes | Headscale operation to call. | |
| params | No | OpenAPI path parameters, such as nodeId or id. | |
| confirm | No | Set to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected. |