Duplicate a component
copy_componentDuplicate a component in an Altium library under a new name, generating fresh GUIDs and unique IDs to create independent variants.
Instructions
Copy/duplicate a component within an Altium library file. Creates a new component with a different name and identical primitives, but its own identity: the copy's GUIDs and unique ids are minted fresh rather than shared with the original. Useful for creating variants.
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": {
"filepath": "<filepath>",
"source_name": "<source_name>",
"target_name": "<target_name>"
},
"name": "copy_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, validate the operation without modifying the file. Default: false | |
| filepath | Yes | Path to the Altium library file (.PcbLib or .SchLib) | |
| description | No | Optional description for the new component (defaults to source description) | |
| source_name | Yes | Name of the component to copy | |
| target_name | Yes | Name for the new copied component |