run_job
Automates one-shot CAD-to-CAM jobs by opening a part, creating the machine group and stock, importing operations, regenerating toolpaths, saving the .mcam, posting .nc, and writing a setup sheet.
Instructions
One-shot CAD-to-CAM: open part (optionally into a template), machine group, stock, import operations, regenerate, save .mcam, post .nc and write the setup/run sheet. Returns every artifact path and a step log.
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": {
"part_path": "<part_path>",
"output_dir": "<output_dir>"
},
"name": "run_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | No | ||
| notes | No | ||
| stock | No | 'all_solids', 'all_entities', {'min':[x,y,z],'max':[x,y,z]}, or null to leave as is | all_solids |
| job_name | No | Base name for outputs (default: part file name) | |
| overwrite | No | Replace an existing .mcam of the same name in output_dir | |
| part_path | Yes | CAD/part file to program | |
| output_dir | Yes | Folder for the .mcam, .nc and setup sheet | |
| programmer | No | ||
| setup_sheet | No | ||
| template_path | No | Template .mcam (machine, stock, maybe operations) to merge the part into | |
| operation_names | No | Subset of library operations to import | |
| machine_definition | No | Machine definition to create a machine group from | |
| operations_library | No | Operation library to import toolpaths from |