model_build
Run a build123d or CadQuery script to generate a 3D model and export it to STEP/GLB. Returns a build report with volume, area, and center of mass.
Instructions
EXECUTES a parametric CAD script (build123d or CadQuery Python)
in this pack's own venv as a resource-capped subprocess (CPU
rlimit + wall timeout, default 75 s), then exports the script's
module-level result shape to the requested formats (default
step+glb) in out_dir — default derived/ beside the script, and
never a directory containing the script itself (charter: source is
truth, artifacts are derived). PARAMS (your params dict) is
available inside the script. Returns the written files and a build
report: volume, area, bbox, center of mass, the script's own
prints.
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": {
"script_path": "<script_path>"
},
"name": "model_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| wall_s | No | ||
| formats | No | ||
| out_dir | No | ||
| script_path | Yes |