run_speed_schedule
Run, report, or stop a layer-based print speed schedule, applying specified speed percentages as layers are reached and tracking what has been applied until completion or stop.
Instructions
Run, report or stop a layer-based speed schedule on this computer.
A schedule is a list of ``{"from_layer", "to_layer", "speed_percent"}``
segments. With ``action="run"`` it starts on the printer that is
printing now, replacing a schedule already running for that printer:
the printer is asked which layer it is on every few seconds and each
segment's speed is set once, as the print reaches it. It stops on its
own when the print ends, when the printer is found running a different
print, or on ``action="stop"`` (the printer stays at the last speed set).
``action="status"`` reports what has been applied so far.
Only the schedule's shape is checked here. Which speeds suit this
printer and which layers a speed is unsafe on is decided by Kiln's
served ``set_speed_schedule``, which hands the checked schedule here.
Args:
schedule: The segments to run (``action="run"`` only): a list of 1
to 64 ``{"from_layer": int, "to_layer": int, "speed_percent":
int}`` entries, ``speed_percent`` within 10-300.
printer_name: Which printer. Omit for the default printer.
action: ``"run"`` (default), ``"status"`` or ``"stop"``.
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": "run_speed_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | ``"run"`` (default), ``"status"`` or ``"stop"``. Default: "run". | |
| schedule | No | The segments to run (``action="run"`` only): a list of 1 to 64 ``{"from_layer": int, "to_layer": int, "speed_percent": int}`` entries, ``speed_percent`` within 10-300. | |
| printer_name | No | Which printer. Omit for the default printer. |