fab_param_model
Generate OpenSCAD and optional CadQuery scripts from JSON parameters to produce parametric 3D-printable parts.
Instructions
Generate OpenSCAD and, by default, a CadQuery script from params JSON.
OpenSCAD is the primary backend. The CadQuery file is source to run later with CadQuery installed; this server does not execute it. No mesh is sent to a printer.
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": {
"project_id": "<project_id>",
"part_name": "<part_name>",
"params": "<params>"
},
"name": "fab_param_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | No | Why this original part exists. Clone requests are refused. | |
| params | Yes | Parametric model JSON. kind is box, cylinder, tube, plate, l_bracket, mount_plate, or custom_scad. Dimensions are millimeters. | |
| backend | No | openscad (primary), cadquery (script only), or both. Default both. | both |
| part_name | Yes | Part name. Stored as a filesystem slug. | |
| project_id | Yes | Id returned by fab_create_project. | |
| source_path | No | Optional .scad file or directory to ingest. Use cad-v0 for the bundled trainer grip set. Other paths must sit under the project directory or FAB_IMPORT_ROOTS. Relative include <> inside that root is inlined. Absolute includes, ../, use, and import() are rejected. | |
| reproduction | No | original, interoperable_fixture, or proprietary_clone. | original |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||