device_add
Add one or more electrical devices to a CADCraft project using a catalog ID or device kind, with optional mounting, tags, terminals, and dimensions. Terminal strips also create an empty strip.
Instructions
Add one or more devices. Give catalog_id (see library_search) or at least kind.
Tags are auto-assigned from the profile letter code when omitted (-QA1, -KF2 ... or CR1, M1 in NFPA). Use mount='field' for devices outside the cabinet, 'door' for door-mounted ones. A terminal_strip device also creates its (empty) strip.
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": {
"items": "<items>"
},
"name": "device_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |