Insert a template
insert_templatePuts one of the templates (list_templates) into the design as a part of its own, built with the parameter values given (each checked against its range; the ones left out keep their defaults), placed with its origin at position and turned rotate degrees about Z. Returns the part, its bodies and the values used. Design round it or change it then like any part.
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": {
"slug": "<slug>"
},
"name": "insert_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The part's name (default the template's). | |
| slug | Yes | The template, from list_templates. | |
| under | No | Put it on this part, to move with it. | |
| rotate | No | Degrees about Z (default 0). | |
| values | No | Parameter values by name, e.g. {"module": 1.5, "teeth": 24}, in the units list_templates gives. | |
| in_part | No | Points and directions in this part's coordinates, as it stands now; default the world. | |
| position | No | Where the part's origin goes, [x, y, z] in mm (default the world origin). |