batch_variants
Generate multiple parameter variants of a Rhino template in one call, exporting each to STL/STEP with a CSV manifest; invalid variants are skipped and noted.
Instructions
批量生成一个模板的多个参数变体(v0.5),一次调用全跑完。
template: 模板名(list_templates 查)。
variants: 参数组列表,每项是一组参数(只写要改的),例如
[{"hole_spacing": 50}, {"hole_spacing": 60}, {"hole_spacing": 70}];
空对象 {} 表示全默认参数。最多 50 个。
export_format: stl(默认)/ step / none(只量体积不导出)。
output_dir: 导出目录,省略则落桌面;文件名带序号和与默认不同的参数,
另有一份 batch_manifest.csv 对照清单。
注意:执行时会先清空场景,每个变体导出后即删除,结束时场景为空,
成果都在文件里。某个变体参数非法只跳过它并在清单里标注原因,
不要自己逐个 build_template 拼批量(慢且费调用)。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": {
"template": "<template>",
"variants": "<variants>"
},
"name": "batch_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | ||
| variants | Yes | ||
| output_dir | No | ||
| export_format | No | stl |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |