Restart the slicer window
restart_slicerRestarts Anycubic Slicer Next cleanly, optionally reopening it with chosen presets and a model so saved settings load; leaves the session unchanged if a save-project dialog is open.
Instructions
Close Anycubic Slicer Next the normal way and open it again, optionally with presets selected and a file open.
Use it after saving presets (the window only reads them at start-up) or to open a model with exact presets picked, so the user can slice and send from the window with your settings. It never force-quits: if the window is asking whether to save the current project, nothing changes and you get told to ask the user to answer that dialog. Selecting presets edits the slicer's settings file while it is closed (a backup is kept next to it).
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": "restart_slicer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colours | No | '#RRGGBB' per filament for the window's colour swatches. | |
| printer | No | Printer preset to have selected, e.g. 'Kobra X'. Needed to choose a process or filaments. | |
| process | No | Process preset (layer height, speeds), e.g. '0.20mm Standard'. Omit to use the slicer window's selection. | |
| filaments | No | Filament preset names, one per filament slot, e.g. ['Anycubic PLA']. Omit to use the slicer window's selection. | |
| open_path | No | A model, .3mf or .gcode.3mf to open when it starts. Omit to just restart. |