add_assembly_part
Add a new part to an existing 3D assembly from its JSON representation. Specify the part ID, mesh file path, position offset, material, and structural role.
Instructions
Add a part to an existing assembly.
Parses the assembly from its JSON representation, appends
the new part, and returns the updated assembly state.
Args:
assembly_json: JSON string of the current assembly state
(as returned by create_assembly or a previous tool call).
part_id: Unique identifier for this part within the assembly.
file_path: Path to the STL/OBJ mesh file for the part.
position_x: X position offset in mm (default 0.0).
position_y: Y position offset in mm (default 0.0).
position_z: Z position offset in mm (default 0.0).
material: Filament material for the part (default ``"PLA"``).
role: Structural role of the part (default ``"structural"``).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | structural | |
| part_id | Yes | ||
| material | No | PLA | |
| file_path | Yes | ||
| position_x | No | ||
| position_y | No | ||
| position_z | No | ||
| assembly_json | Yes |