Rename a component
rename_componentRename a component in an Altium library file while preserving its primitives and properties. This atomic operation offers a more efficient alternative to copy and delete for simple name changes.
Instructions
Rename a component within an Altium library file. This is an atomic operation that changes the component's name while preserving all primitives and properties. More efficient than copy + delete for simple renames.
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>",
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "rename_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) | |
| new_name | Yes | New name for the component | |
| old_name | Yes | Current name of the component to rename |