create_user_token
Generate an API token for a user, with optional privilege separation and expiration. Returns the token value (shown only once).
Instructions
Create a new API token for a user. Returns the token value (shown only once).
Args: userid: User ID (format: 'user@realm'). tokenid: Token ID (alphanumeric). comment: Token description. privsep: Enable privilege separation (token has own permissions, not user's full permissions). expire: Expiration (Unix epoch, 0 = never).
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": {
"userid": "<userid>",
"tokenid": "<tokenid>"
},
"name": "create_user_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expire | No | ||
| userid | Yes | ||
| comment | No | ||
| privsep | No | ||
| tokenid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |