assign_device
Assign or reassign a device to a user, or omit the user to unassign it; changes are staged and require apply_change to take effect.
Instructions
Assign or reassign a device to a user. This normally happens at authentication time, but admins can override it here. Controllers are refused. Returns a change_id; nothing changes until apply_change.
Args: device_id: The device to assign. user_id: The user UUID to assign to. Omit to unassign.
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": {
"device_id": "<device_id>"
},
"name": "assign_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | ||
| device_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |