Check components exist
component_existsVerify component existence in Altium .PcbLib or .SchLib libraries before renaming, copying, or deleting to avoid errors.
Instructions
Check if one or more components exist in an Altium library. Use this to validate component names before operations like rename, copy, or delete. Supports both .PcbLib and .SchLib files.
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>",
"component_names": "<component_names>"
},
"name": "component_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to the Altium library file (.PcbLib or .SchLib) | |
| component_names | Yes | List of component names to check |