delete_component
Deletes a top-level component from the active assembly, removes its mates, and reports deleted mates, remaining components, and new mate errors; refuses sub-assembly and pattern instances.
Instructions
Delete a top-level component from the active assembly. SolidWorks deletes the mates that use it with it; the result lists them (name and type), the components left, and any other mate that now has an error. A component inside a sub-assembly is refused (it belongs to the sub-assembly's file), as is an instance of a component pattern.
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": {
"component": "<component>"
},
"name": "delete_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | Top-level component name from list_components, e.g. Bracket-2 |