New project (replaces the open session)
new_projectStart a new, empty OrcaSlicer project without a dialog, choosing how to handle unsaved changes. Follow with load_model and save_project to create the project file.
Instructions
Start a new, empty project (File > New Project) without a dialog.
The unsaved-changes prompt is answered by if_unsaved. OrcaSlicer's second prompt, keep or discard modified presets, is answered with Keep: unsaved preset overrides carry over into the new project and the reply names them in kept_changes (select_preset drops them if that is not wanted). Follow with load_model and save_project to create a project file. Needs fork v2.4.2-mcp.15 or later.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "new_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A title for the new project, shown in the window; 'Untitled' when omitted. The file name is chosen when save_project is called with a path. | |
| if_unsaved | No | What to do when the current project has unsaved changes: 'fail' (default) refuses and changes nothing, 'save' writes it to its own path first (fails with no_project_path if it has none), 'discard' throws the changes away. | fail |