unit_create
Create a unit in the IoT platform, automatically assigning the calling user as owner. Use this tool to register a unit by providing a unique code and optional name or info.
Instructions
Create a unit. The calling user becomes the owner.
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": {
"code": "<code>"
},
"name": "unit_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Unit code, pattern [A-Za-z0-9][A-Za-z0-9-_]*. Lowercased. | |
| info | No | Other information. | |
| name | No | Display name. |