open_file
Opens a .mcam or CAD file in Mastercam, discarding unsaved changes unless merge is set to combine it with the active file.
Instructions
Open a part in Mastercam (unsaved changes in the current file are discarded unless merge=true).
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": {
"path": "<path>"
},
"name": "open_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a .mcam or CAD file (sldprt, step, x_t, igs, stl, dxf, ...) | |
| merge | No | Merge into the current file instead of replacing it |