Insert Component
insert_componentInsert a part or sub-assembly file into the active assembly at a position in millimeters, returning its instance name, file path and component counts for later mate positioning.
Instructions
Insert a part or sub-assembly file into the active assembly at a position in mm.
Use it after create_assembly, then position components with add_mate. The
file must contain solid geometry; an empty or missing file is an error. Needs:
an open, active assembly and the file on disk. Changes: adds a component.
Returns: component with its instance name (component, which add_mate
takes), file_path, position and the counts before and after.
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": "insert_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The component. `file_path` is required; `x`, `y`, `z` (mm from the assembly origin) default to 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||