lib_device_copy
Copies a library device from a source library to a target library and returns the new device UUID. Use it to duplicate devices across EasyEDA libraries while choosing an optional new name.
Instructions
Copy a library device from one library to another. Returns the new device UUID. Whether the device's symbol/footprint are deep-copied or referenced cross-library is yet to be confirmed empirically.
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": {
"deviceUuid": "<deviceUuid>",
"libraryUuid": "<libraryUuid>",
"targetLibraryUuid": "<targetLibraryUuid>"
},
"name": "lib_device_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceUuid | Yes | Source device UUID | |
| instance_id | No | Target EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances. | |
| libraryUuid | Yes | Source library UUID | |
| newDeviceName | No | Name for the copy (defaults to source name; collisions fail) | |
| targetLibraryUuid | Yes | Destination library UUID |