Replace Component
replace_componentSwap an assembly component with a different part or assembly file, preserving mates where they fit and optionally replacing every instance of the same file.
Instructions
Swap an assembly component for another part or assembly file.
Use it to try another version of a part (a longer pin, a different motor)
without re-inserting and re-mating it. all_instances replaces every
instance of the same file, patterned copies included. Mates are kept where
they still fit. Needs: an open assembly and the new file. Changes: the
component's file. Returns: replace with the replaced instances and
their files read back, and the components before and after. A file that
doesn't exist fails as invalid_input.
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": {
"input_data": "<input_data>"
},
"name": "replace_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | `component` and `file_path` are required; `all_instances` is off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||