Clone a device many times
clone_deviceCreate multiple independent copies of a running simulated device on separate ports for load testing, each preserving the source’s points, values, signals, and settings at copy time.
Instructions
Create several copies of a running device, each on its own port, for example 50 identical meters for a load test. Copies start with the source's points, current values, signals and settings; later changes to the source do not reach them. Use create_device for a single new device. If a copy cannot be created the call stops there and the error says how many were made; those copies keep running. Returns the id, port and unit id of every copy.
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": {
"source_id": "<source_id>",
"count": "<count>"
},
"name": "clone_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many copies to create. | |
| id_prefix | No | Copies are named <prefix>-1, <prefix>-2, ... Default: the source id. | |
| source_id | Yes | Id of the running device to copy. | |
| start_port | No | Port of the first copy; the others use the following ports. Omit for the next free ports. |